-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONLY_THESE_USERS is poorly named and not as useful as it should be #10817
Comments
and the individual users would have a |
As per comment here: #10819 (comment) there's now a demo repo with all these PRs in one place: https://github.com/andrewandante/silverstripe-only-this-user-demo/blob/main/composer.json#L11-L23 |
@andrewandante FYI this has now progressed from todo to in progress, so I'll be reviewing the PRs more thoroughly today. I've given them only quick glances until now to check for anything obvious - so there may be a few more changes requested. |
Thank you for this @andrewandante, this is a great contribution! It'll be released with 5.1 - we're aiming for an October release at the moment. I've linked a docs PR to the issue description which someone else in the team will review. |
Magic, thanks so much for your guidance and patience! Onward! |
Have merged docs PR |
THANK you SO MUCH |
Affected Version
CMS all of them
Description
The scope of
InheritedPermissions::ONLY_THESE_USERS
doesn't do what it says on the tin; instead, this functionality is better described as "only these GROUPS". Equally, this means you can't assign a specific user access to anything in this way - you have to jump through hoops to add them to a group first, which is often unnecessary double-handling.Proposal
Minor release: add a new permission
InheritedPermissions::ONLY_THESE_INDIVIDUAL_USERS
that allows mapping to manyUser
s, instead of groups. Mark this permission and the existing permission as deprecated. This adds the new functionality without breaking the existing API.Major release: rename the above as follows:
InheritedPermissions::ONLY_THESE_USERS
=>InheritedPermissions::ONLY_THESE_GROUPS
InheritedPermissions::ONLY_THESE_INDIVIDUAL_USERS
=>InheritedPermissions::ONLY_THESE_USERS
PRs
ListboxField React PRs
The text was updated successfully, but these errors were encountered: