Service Accounts: Managed permissions for service accounts (#51818)
* backend changes * frontend changes * linting * nit * import order * allow SA creator to access the SA page * fix merge * tests * fix frontend tests Co-authored-by: alexanderzobnin alexanderzobnin@gmail.com
This commit is contained in:
co-authored by
alexanderzobnin alexanderzobnin@gmail.com
parent
2af5feb147
commit
d85df0a560
@@ -450,7 +450,10 @@ var teamsEditAccessEvaluator = ac.EvalAll(
|
||||
var apiKeyAccessEvaluator = ac.EvalPermission(ac.ActionAPIKeyRead)
|
||||
|
||||
// serviceAccountAccessEvaluator is used to protect the "Configuration > Service accounts" page access
|
||||
var serviceAccountAccessEvaluator = ac.EvalPermission(serviceaccounts.ActionRead)
|
||||
var serviceAccountAccessEvaluator = ac.EvalAny(
|
||||
ac.EvalPermission(serviceaccounts.ActionRead),
|
||||
ac.EvalPermission(serviceaccounts.ActionCreate),
|
||||
)
|
||||
|
||||
// Metadata helpers
|
||||
// getAccessControlMetadata returns the accesscontrol metadata associated with a given resource
|
||||
|
||||
Reference in New Issue
Block a user