File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,8 @@ func New(options *Options) *API {
286
286
RedirectToLogin : false ,
287
287
Optional : true ,
288
288
}),
289
+ // TODO: We should remove this auth context after middleware.
290
+ httpmw .SystemAuthCtx ,
289
291
httpmw .ExtractUserParam (api .Database , false ),
290
292
httpmw .ExtractWorkspaceAndAgentParam (api .Database ),
291
293
),
@@ -313,8 +315,7 @@ func New(options *Options) *API {
313
315
RedirectToLogin : false ,
314
316
Optional : true ,
315
317
}),
316
- // TODO: The ExtractUserParam middleware requires an actor in the context.
317
- // As this is potentially a public endpoint, using system actor.
318
+ // TODO: We should remove this auth context after middleware.
318
319
httpmw .SystemAuthCtx ,
319
320
// Redirect to the login page if the user tries to open an app with
320
321
// "me" as the username and they are not logged in.
You can’t perform that action at this time.
0 commit comments