-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ALLOW_LIST_FULL_ADMIN where practical (#15428)
There are several places in the codebase where we return or evaluate the dictionary `{"method": "*", "resource": "*"}`. Place this in a privilege_constants file that has minimal imports to avoid potential issues with circular imports and to speed up usage in external applications and unit tests.
- Loading branch information
Showing
5 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import enum | ||
|
||
ALLOW_LIST_FULL_ADMIN = {'method': '*', 'resource': '*'} | ||
|
||
|
||
class LocalAdminGroups(enum.IntEnum): | ||
BUILTIN_ADMINISTRATORS = 544 |