• Custom User Groups access to admin panel in PointShop
    1 replies, posted
Was wondering if anyone knew how I can allow custom usergroups (that inherit from user group and not admin or superadmin) access to the admin panel in undefined's pointshop? I was look at the code and it looks like this is probably the section that would need to be altered: [url]http://paste.ubuntu.com/7348414/[/url]
Change all instances of [code]local admin_allowed = PS.Config.AdminCanAccessAdminTab and ply:IsAdmin()[/code] to [code]local admin_allowed = PS.Config.AdminCanAccessAdminTab and (ply:IsAdmin() or ply:IsUserGroup("othergroup") or ply:IsUserGroup("othergroup2"))[/code]
Sorry, you need to Log In to post a reply to this thread.