wyozi / wmc-plus

Media center addon for Garry's Mod
MIT License
1 stars 1 forks source link

Permissions do not work #21

Open Flugal opened 7 years ago

Flugal commented 7 years ago

We have a specially-made staffing system where all of our staff departments are merged into four ULX Ranks: staffaspirant, staff1, staff2, and staff3. I have it set so any staff can use WMCP's full permissions for event music on our StarWarsRP. However, when trying to use the system, it doesn't work, telling you "Access to 'Permission' Denied." We don't know what's going on or how to fix this, nor do we have an Error Code.

yupi2 commented 7 years ago

With MinAccess set to "admin" ULX/ULib seems to check ply:IsAdmin().

If the staff ranks don't aren't considered admins by ULX then it could be the problem. Do any of the admin/staff/owner ranks have the permissions for WMCP?

wyozi commented 7 years ago

This is a bit weird. Assuming the error message comes from https://github.com/wyozi/wmc-plus/blob/master/lua/wmcp/sh_permissions.lua#L55 WMCP_IfPermissionAsync would have to be called with 'Permission' as the first string argument.

Are you sure "Access to 'Permission' Denied." is the message you're getting?

Flugal commented 7 years ago

I said 'Permission' in quotes as this would be the Permission that it is denying. For example, Access to Playall Denied

wyozi commented 7 years ago

Right, it's possible that your ULX is outdated or for some reason doesn't use CAMI while FAdmin does, in which case FAdmin's permission system overrides that of ULX.