Skip to content

Commit

Permalink
Merge pull request #13034 from markylaing/group-can-view-fix
Browse files Browse the repository at this point in the history
Auth: Fix entitlement for group list request.
  • Loading branch information
tomponline authored Mar 4, 2024
2 parents 0a8381d + d873bf6 commit d47145e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/auth_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func getAuthGroups(d *Daemon, r *http.Request) response.Response {
recursion := request.QueryParam(r, "recursion")
s := d.State()

hasPermission, err := s.Authorizer.GetPermissionChecker(r.Context(), r, auth.EntitlementCanViewGroups, entity.TypeAuthGroup)
hasPermission, err := s.Authorizer.GetPermissionChecker(r.Context(), r, auth.EntitlementCanView, entity.TypeAuthGroup)
if err != nil {
return response.SmartError(fmt.Errorf("Failed to get a permission checker: %w", err))
}
Expand Down

0 comments on commit d47145e

Please sign in to comment.