-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
PermissionsService Documentation & Stricter Specifications. #1383
Comments
Replying to distinguish the list from my opinion.
|
Wasn't there somewhere the rule that you always inherit the children permissions of a permission? The user has the following permission:
Then he also has
Thus EDIT: @ EDIT2: Maybe this should be placed somewhere more prominent like in the
IMO the
This is to some extend also stated by the javadocs:
EDIT3:
NO its not. The behaviour should be predicable and the same for all plugins. |
@zml2008: What are your thoughts on this? |
To add onto what's been mentioned here already, I feel stricter guidelines about how defaults should work needs to be included. In the #hasPermission and equivalent checks, are defaults to be resolved too? There's also some confusion as to whether defaults should be persisted or not. If they do persist, and you allow server administrators to modify them, then care should be taken to inform plugin developers to not override any changes made by server admins. (I personally feel that they should be transient, but appreciate the benefits of being able to modify or override them) Additionally, I somewhat agree with @ryantheleach 's thoughts about using PermissionDescriptions, as explained in #924. From what I can tell, there's no use for them at the moment? "the registration does not have any impact on the results of the permission checks of the service." They therefore seem to be somewhat redundant? Having different defaults for different roles would make sense, given the whole role system is already laid out in PermissionDescription... or, that might be well beyond the scope of the service. I don't know really. I'm just happy to see changes/questions being brought up, as I think a lot does lack clarity. |
I think the original goal behind PermissionDescription was to provide templates, + tab-completion for permissions that hadn't yet been filled into a permissions plugin. |
The problem with default permissions is that they are added secretly to the user, so the admin does not know their use, has issues if they change their definition or are re-set by the plugin. In addition to that he might not know that they exist in the first place. (Blacklist vs whitelist issue) |
Ah yes, that does make sense. I don't think that being added secretly is an issue. It's just something that can be included in plugin's documentation, informing admins that they don't have to manually give the permissions, and to remind them that they might have to override the defaults if they disagree with the plugin author's selection. I think that therefore is makes more sense that defaults are left as being transient, and are overridden by adding permissions to default groups or directly to subjects through the permission plugin. (in contrast, PEX persists the defaults, and allows server admins to modify them directly.) This needs to be clarified in the JavaDocs. It's causing issues, particularly with Grief Prevention, and will likely cause further issues as plugins override changes made to defaults made by server admins. GP implements it in a way that doesn't override changes, but other authors may not do the same. Anyway, I don't really want to take attention away from the main points in this issue, the defaults thing was just something else I thought I should bring up. |
While we are at it we should also fix his:
Just for reference: #1000 (comment) |
PR (#1387) merged
|
It's come to my attention that the PermissionsService documentation is a little lacking in some areas, So I've created this issue to collect comments relating to what needs improving.
https://forums.spongepowered.org/t/luckperms-an-advanced-permissions-system/14274/106
The text was updated successfully, but these errors were encountered: