Access Control: Allow org admins to invite new users (#55585)

* backport change to allow org admins to invite new users to org

* remove docs from backport
This commit is contained in:
Ieva
2022-09-21 16:19:06 +01:00
committed by GitHub
parent 0e5b1a7c5d
commit 992ea8b765
6 changed files with 11 additions and 36 deletions
-7
View File
@@ -443,13 +443,6 @@ var orgsCreateAccessEvaluator = ac.EvalAll(
ac.EvalPermission(ActionOrgsCreate),
)
// usersInviteEvaluator is used to protect the "Configuration > Users > Invite" page access
// accessible to org admins and server admins by default
var usersInviteEvaluator = ac.EvalAny(
ac.EvalPermission(ac.ActionUsersCreate),
ac.EvalPermission(ac.ActionOrgUsersAdd),
)
// teamsAccessEvaluator is used to protect the "Configuration > Teams" page access
// grants access to a user when they can either create teams or can read and update a team
var teamsAccessEvaluator = ac.EvalAny(