Skip to content
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

Way to strip a player's specific permissions/parents from the guest group. #364

Open
CookStar opened this issue Nov 25, 2020 · 0 comments
Open

Comments

@CookStar
Copy link
Contributor

CookStar commented Nov 25, 2020

Guest groups in auth are very useful, however it is very difficult to strip certain permissions/parents from the guest group.

The guest group is expected to set permissions over features that would be available to all players, but there is no way to deal with players who abuse that feature.
So the ability to revoke certain permissions in a guest group from certain players seems to be useful.

Example: When you want to strip only say2 from a particular player.
Code: parents.json

{
    "guest": {
        "permissions": [
            "say",
            "say2"
        ]
    }
}

It is very difficult to strip permissions from this state.

You cannot strip the guest because say will not work.(i.e. sp auth permission player remove_parent player guest)
You cannot strip say2 because say2 on the guest will still work.(i.e. sp auth permission player remove player say2)

In order to strip say2 you need to strip the guest and then add a say.
sp auth permission player remove_parent player guest
sp auth permission player add player say

However, this breaks the functionality of the guest group, because the newly added permissions/parents to the guest will no longer function with this player.

Right now, I don't have any working code, but I'm thinking of something that would negate the guest group,
Code: negate_group.json

{
    "STEAM_1:0:0": {
        "permissions": [
            "say2"
        ]
    }
}

Or create a setting value that negates the permissions/parents itself.
Code: players.json

{
    "STEAM_1:0:0": {
        "negates": {
            "permissions": [
                "say2"
            ]
        }
    }
}

What do you all think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants