diff --git a/pkg/server/interceptors/authorization.go b/pkg/server/interceptors/authorization.go index 5eb796cac..301afecbe 100644 --- a/pkg/server/interceptors/authorization.go +++ b/pkg/server/interceptors/authorization.go @@ -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)