Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PermaProps.HasPermission( ply, name )
- if ply:IsSuperAdmin() then return true end
- if !PermaProps or !PermaProps.Permissions or !PermaProps.Permissions[ply:GetUserGroup()] then return false end
- if PermaProps.Permissions[ply:GetUserGroup()].Custom == false and PermaProps.Permissions[ply:GetUserGroup()].Inherits and PermaProps.Permissions[PermaProps.Permissions[ply:GetUserGroup()].Inherits] then
- return PermaProps.Permissions[PermaProps.Permissions[ply:GetUserGroup()].Inherits][name]
- end
- return PermaProps.Permissions[ply:GetUserGroup()][name]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement