Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

[WIP] Add way to apply default permissions. #140

Merged
merged 1 commit into from May 14, 2016
Merged

Conversation

dualspiral
Copy link
Member

It occurred to me a while ago, and again when browsing the EssentialCmds forum thread, that with a load of permissions, server owners like a quick and easy way to apply the defaults. PermissionDescriptions can potentially go some way to doing this, but some permission plugins just won't touch it.

So, I've written essentially what is a batch command processor, that takes a group and a Nucleus role (as shown on the website), and puts all relevant permissions into the group. However, the permission command must be user specified in the main config file, under core.permission-command. A suitable command that would work with PEX would be:

pex group {{group}} perm {{perm}} 1

The admin could then run /nucleus setupperms USER user to add all USER permissions to the group user, as long as they have permission to add permissions as Nucleus will run the command as the user.

@dualspiral
Copy link
Member Author

dualspiral commented May 14, 2016

This is working for me. Merging - will document it before we go live with the next release.

@dualspiral dualspiral merged commit 41f0dd9 into master May 14, 2016
@dualspiral dualspiral deleted the feature/easy-perms branch May 14, 2016 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant