PermissionsEx

PermissionsEx

14M Downloads

[PEX 1.x] Inheritance command question

Stormbow opened this issue ยท 1 comments

commented

Is there a command in PEX 1.x that will set a group's inheritance to inheritance: [] or does this need to be set in the permissions.yml file by editing the file in Notepad/Notepad++?

I've attempted to use pex group GroupA parents set '', pex group GroupA parents set "", pex group GroupA parents set [], and pex group GroupA parents set none, and did not get the desired result of inheritance: [] for the group.

I'm assuming that pex group GroupA parents set GroupA would be bad, making PEX read the GroupA permissions, probably infinitely and probably lagging up the server. (This command doesn't give the desired result either, anyway.)

Would pex group GroupA parents set none be a sufficient solution to the question of "How do I set an inheritance for a group which does not inherit from other groups?"? This results in:

    inheritance:
    - none

and doesn't seem like it would lag up the server or have any other detrimental effects.

commented

AH HA! As always, as soon as I ask ... I figure it out.

It's a 2-step process to get the desired setting:

  1. pex group GroupA parents set none
  2. pex group GroupA parents remove none

This results in the group having inheritance: [] in the permissions.yml file.