Add updateRole endpoint (#6771)
This commit is contained in:
@@ -8,7 +8,8 @@ allow(User, "createApiKey", Team, (actor, team) =>
|
||||
isTeamModel(actor, team),
|
||||
isTeamMutable(actor),
|
||||
!actor.isViewer,
|
||||
!actor.isGuest
|
||||
!actor.isGuest,
|
||||
!actor.isSuspended
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ allow(User, "createWebhookSubscription", Team, (actor, team) =>
|
||||
and(
|
||||
//
|
||||
isTeamAdmin(actor, team),
|
||||
isTeamMutable(actor)
|
||||
isTeamMutable(actor),
|
||||
!actor.isSuspended
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user