Existing sections in user group section picker should be preselected
See original GitHub issueI noticed while editing sections for “Administrators” user group after removing media and wanted to re-add media section, the existing sections wasn’t preselected, which they used to be. Instead the list was cleared after selecting “Media” and only “Media” was added to sections list.
I was a bit too fast to save, so I was logged out. When logging back in I only had access to media section.
Tested with latest changes in v8/contrib
branch.
It’s quite unfortunate that you as an administrator is able to lock yourself out of the system 🙈
Here is a demonstration - if saving after these steps I can’t access these sections again via UI.
I think the super user (user id -1) should always have access to users section and should not be able to remove this.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
I would love for people to VERY MUCH limit the “super user”/admins at all times, for security reasons. So if something happens by mistakes, it’s okay (to me) that it’s painful to restore access. 🙂
@nul800sebastiaan regarding the other issue mentioned here, where you are able to remove sections and save, where you via the UI can’t get access again (especially if removing “users” section). Maybe “remove” button shouldn’t been available to the super user (-1). But other users with access to “admin” group can remove sections (and potentially remove access to “users” for super user).
Not sure what the best approach is to prevent this? Maybe “users” section should always be available to “admin” group and not possible to remove this under “admin” group?