feat(09-11): add permissioned admin metadata and settings
This commit is contained in:
@@ -82,6 +82,7 @@ func controllerRequest(principal *bouncer.Principal) *http.Request {
|
||||
req.SetPathValue("plugin", "demo")
|
||||
req.SetPathValue("controller", "widgets")
|
||||
if principal != nil {
|
||||
principal.Backend = true
|
||||
req = req.WithContext(bouncer.WithUser(req.Context(), principal))
|
||||
}
|
||||
return req
|
||||
|
||||
Reference in New Issue
Block a user