We need permissions for each module's settings

Description

At present, if the user has the settings.enabled permisson, then the Settings link is enabled – quite rightly – but then clicking on that link offers settings for each module, even when the user does not have permissions to use any of the module's settings.

We can fix this:

  • Each module should define an additional permission, settings.NAME.enabled, and the <Settings> component should display the module's permissions only if this is defined.

  • Each settings.NAME.enabled permission should include settings.enabled as a sub-permission.

  • Each permission for a specific part of the settings (e.g. settings.usergroups.all in the ui-users module) should include the relevant module-wide settings permission (in this case settings.users.enabled).

Then users will see only those settings areas that they have permission to use some part of.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Mike Taylor September 1, 2017 at 1:10 PM

Which completes the issue, and frees Wayne to build a new backend VM that uses all the permissions from the versions of the descriptors in the git-head versions.

Mike Taylor September 1, 2017 at 1:09 PM

Mike Taylor September 1, 2017 at 12:37 PM

Mike Taylor September 1, 2017 at 12:31 PM

Mike Taylor September 1, 2017 at 12:20 PM

Done

Details

Assignee

Reporter

Labels

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created August 30, 2017 at 11:02 AM
Updated September 1, 2017 at 1:17 PM
Resolved September 1, 2017 at 1:11 PM
TestRail: Cases
TestRail: Runs