Jump to content
  • 0
Samuel

Problem with Permissions

Question

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. 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

have you got any error message on your map server?

 

no errors, XD and all groups were loaded

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.