Skip to content
Snippets Groups Projects
Commit 1e3c587c authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/3042-feature' into 'master'

Добавлен учет флага "Расширенный доступ" для пользователей

See merge request perxis/perxis-go!429
parents e2c9749e cf520021
Branches master
No related tags found
No related merge requests found
......@@ -309,6 +309,10 @@ func (u *UserPrincipal) Rules(ctx context.Context, spaceID, envID string) permis
return nil
}
if role.AllowManagement {
return permission.PrivilegedRuleset{}
}
if !hasEnvironmentAccess(ctx, u.environments, role, envID) {
return nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment