Author Topic: ulx toolallowgroup/tooldenygroup  (Read 4310 times)

0 Members and 1 Guest are viewing this topic.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
ulx toolallowgroup/tooldenygroup
« on: June 30, 2007, 03:49:05 PM »
Just like the ulx toolallowuser/tooldenyuser, I think we should be able to allow and deny tools by groups. This way we don't have to input every user. Also toolallowuser/tooldenyuser, seems to only work with their names. This would be bad if they joined with a different name. Group permissions ftw! ;D

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx toolallowgroup/tooldenygroup
« Reply #1 on: June 30, 2007, 04:17:38 PM »
It denies it to their player object, so if they rejoin it's cleared.

Well, I'm working on the new UCL string access, and this seems like a good use for it. Should be a cinch to implement.
Experiencing God's grace one day at a time.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: ulx toolallowgroup/tooldenygroup
« Reply #2 on: June 30, 2007, 04:30:45 PM »
Hmm. Maybe you could put the command in the users.txt and groups.txt. This would work exactly like the allow and deny for ULX commands. Benefits? Well all the permissions would be in these two files and they would save between server sessions. Also permissions would be tied to groups or users id, instead of just player objects).

Example for groups.txt (I only use user.txt for immunity, but I'm sure you could figure out how it will look for users.txt):
Code: [Select]
Out{
//Other groups omitted for example
    guest{
        allow{
            "1"        "ulx votekick"
        }
        deny{
        }
        toolallow{
            //Only needed if something is globally omitted.
        }
        tooldeny{
            "1"        "spawn_tool" //VMF Suite spawn tool. Name is of the Lua file. Just like how ulx tooldeny works.
        }
    }
}
« Last Edit: June 30, 2007, 04:36:12 PM by atomicspark »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx toolallowgroup/tooldenygroup
« Reply #3 on: June 30, 2007, 04:57:26 PM »
With the new access strings we can just have it setup like this...

Code: [Select]
Out{
"[ULX]Megiddo"
{
"id" "STEAM_ID_LAN"
"type" "steamid"
"groups"
{
"1" "superadmin"
}
"deny"
{
"1" "tool_welder"
]
}
}
Experiencing God's grace one day at a time.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: ulx toolallowgroup/tooldenygroup
« Reply #4 on: June 30, 2007, 05:30:05 PM »
Ah cool. So allow and deny can be universal. Very nice. I assume it's the exact same for groups, yes?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ulx toolallowgroup/tooldenygroup
« Reply #5 on: June 30, 2007, 05:42:21 PM »
Correct
Experiencing God's grace one day at a time.

Offline Kingtendo

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: ulx toolallowgroup/tooldenygroup
« Reply #6 on: July 30, 2007, 11:38:41 AM »
Can the access strings be used in ULX 3.11 and Ulib 2.05 ?

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: ulx toolallowgroup/tooldenygroup
« Reply #7 on: July 30, 2007, 07:53:03 PM »
No, we've done some major reworking of the internal components of the UCL for the next version. In current released versions the access strings only apply to commands.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage