Jump to content

Add to ACL from console-server


JoaoZanetti

Recommended Posts

You can use runcode from the server console, and run the following code (however, both resource.runcode and user.Console must be in a privileged group like Admin for this to work)

ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE")

(this should work if runcode has OOP enabled.)

Edited by MrTasty
Link to comment
On 1/27/2017 at 21:02, MrTasty said:

You can use runcode from the server console, and run the following code (however, both resource.runcode and user.Console must be in a privileged group like Admin for this to work)


ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE")

(this should work if runcode has OOP enabled.)

Set all permissions to Admin, run your code and didn't worked.

g18ETrK.png

Link to comment

By running the code with runcode, I meant use the console command /run (or /srun), followed by that code.

/run ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE")

Make sure runcode is running (if it isn't, or you're unsure, just /start runcode)

Edited by MrTasty
Link to comment
On 2/1/2017 at 05:57, deopromta said:

u cant lol from F8 :P only from ACLpanel xD

 

On 2/1/2017 at 07:40, Abu-Solo said:

ACL MANAGER ...

In resources tab

Will be a server python script that will run this command, not a person.

On 1/31/2017 at 19:17, MrTasty said:

By running the code with runcode, I meant use the console command /run (or /srun), followed by that code.

/run ACLGroup.get("ACL GROUP NAME HERE"):addObject("user.ACCOUNT NAME HERE")

Make sure runcode is running (if it isn't, or you're unsure, just /start runcode)

Thanks! I will try that.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...