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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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