Skip to content

Commit

Permalink
fix: add ListOrganizationAdmins to authorization.go file (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh authored Oct 3, 2024
1 parent 42bf7bf commit 689f0a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/server/interceptors/authorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ var authorizationValidationMap = map[string]func(ctx context.Context, handler *v
pbreq := req.(*frontierv1beta1.ListOrganizationUsersRequest)
return handler.IsAuthorized(ctx, relation.Object{Namespace: schema.OrganizationNamespace, ID: pbreq.GetId()}, schema.GetPermission)
},
"/raystack.frontier.v1beta1.FrontierService/ListOrganizationAdmins": func(ctx context.Context, handler *v1beta1.Handler, req any) error {
pbreq := req.(*frontierv1beta1.ListOrganizationAdminsRequest)
return handler.IsAuthorized(ctx, relation.Object{Namespace: schema.OrganizationNamespace, ID: pbreq.GetId()}, schema.GetPermission)
},
"/raystack.frontier.v1beta1.FrontierService/ListOrganizationServiceUsers": func(ctx context.Context, handler *v1beta1.Handler, req any) error {
pbreq := req.(*frontierv1beta1.ListOrganizationServiceUsersRequest)
return handler.IsAuthorized(ctx, relation.Object{Namespace: schema.OrganizationNamespace, ID: pbreq.GetId()}, schema.GetPermission)
Expand Down

0 comments on commit 689f0a3

Please sign in to comment.