Page 1 of 1

API - Permission Denied

Posted: Fri Apr 28, 2017 12:03 pm
by canuckbrian
I'm playing around with the API and I'm having issues.

"status" & "running" both return "Error: Permission Denied", but using the same credentials I can issue "listservers", "listusers", and "alive" commands and get a valid response.

Seems like any API command that uses an ID fails with "Error: Permission Denied".

I have tried with uget, and I have tried with Postman (https://www.getpostman.com/) and neither work.

Re: API - Permission Denied

Posted: Sat Apr 29, 2017 1:28 am
by Masher
Yes, there was an issue with those commands, and it has been fixed and will be available in the next update. I forgot to check for the admin flag for the specified API user.

Re: API - Permission Denied

Posted: Sat May 13, 2017 2:31 pm
by Masher
I was going to wait until a feature I'm working on was finished; but it's more involved than I had expected.

Here's a hotfix. place the files in the archive in your panel's /bin folder.

http://redirect.brainless.us/ugcc/1.901/bin.zip