Problem with Permissions

Samuel

New member
Messages
397
Points
0
Discord
Elijah#5798
Github
Samuel23
Emulator
Hi everyone, don't know if it's the right section for this, moderators can move where this belongs.

So I'm encountering a problem with group permission can_trade

 
I'm using the config below:
{
id: 80
name: "GM Chief"
inherit: ( "Law Enforcement" )
level: 80
commands: {
}
log_commands: true
permissions: {
can_trade: false
}
},
{
id: 98
name: "Co-Admin"
inherit: ( "GM Chief" )
level: 98
commands: {
}
log_commands: true
permissions: {
can_trade: false
}
},

This works when I'm on my test server in my own computer. GM Chief and Co-Admin can't use trade.

But when I use this settings on the live server, GM Chief and Co-Admin can use trade. 

 
In all truth, I know very little about how libconfig works, but it might be reading off as a double negative?

For example, if Law Enforcement inherits a permission group that can't trade, GM Chief inherits that can_trade: false setting. Here, you set GM Chief and Co-Admin to also have can_trade: false while inheriting permissions from other groups that already can't trade. Since they inherit a lower group's permissions, why would you need to define it again?

tl;dr:

Try removing any duplicate can_trade: false from groups that inherit or have that same permission setting.

 
Back
Top