WIP
OVERVIEW
...
First, the user needs to be in a role that gives them access to the System Console from the chat-facing side (READ_SETTINGS
). Then, depending on the role, the user could have read-only access (no WRITE_SETTINGS
permission).
The algorithm is rules are as follows:-
if the current user's system role does not have
READ
orWRITE
permission on the resource, the section is hidden for the user.
...
Example: User Manager does not have
PERMISSION_READ_SYSCONSOLE_PLUGINS
orPERMISSION_WRITE_SYSCONSOLE_PLUGINS
so the Plugins section is hidden from view for a user in a User Manager role
...
...
if the current user's system role only has
READ
permission on the resource the resource(section) is disabled
...
. Example: User Manager has
PERMISSION_READ_SYSCONSOLE_AUTHENTICATION
so the Authentication section is disabled for a user.
...
if the current user's system role has a
WRITE
permission on a
...
subsection, then
...
no matter if he has
READ
orWRITE
permission on the parent section, the resulting permission on the subsection isWRITE
...
Example: User Manager has
PERMISSION_WRITE_SYSCONSOLE_USERMANAGEMENT_USERS
on the Users sub-section but alsoPERMISSION_READ_SYSCONSOLE_USERMANAGEMENT
on the entire section, the resulting permission isWRITE
on the sub-section.
Note, by design we will not define a case in which a role has WRITE
access on a section and READ
on a sub-section (the opposite can happen, see above).
...
Each API call that was previously gated by the MANAGE_SYSTEM
permission is now gated by the READ_*
permission for the get()
calls and WRITE_*
permission for the create/patch/update calls.
If we need to have more granular access to an API method that corresponds to the functionality of a sub-section in the System Console (like in the User Manager case), we will gate those calls on a case by case (one panel functionality in the System Console panel can map to more than one API call).
Permissions
See changes detailed above
Schema
No schema changes
REST API
The following API methods will have their gating functionality changes, as follows:
Performance
No performance degradation expected.
Plugins
CREDITS
Thanks to