mirror of
https://github.com/MalboroDEV/PermaProps.git
synced 2025-03-04 03:13:21 -05:00
FIX
This commit is contained in:
parent
3243e333d9
commit
34a7a78eaf
@ -108,7 +108,15 @@ local function pp_info_send( um, ply )
|
||||
|
||||
local Content = net.ReadTable()
|
||||
|
||||
if !PermaProps.IsSuperAdmin(ply) then ply:ChatPrint("Access denied for user") return end
|
||||
if ULib and ULib.ucl then
|
||||
|
||||
if !ULib.ucl.query( ply, "permaprops_menu_cfg" ) then ply:ChatPrint("Access denied for user") return end
|
||||
|
||||
else
|
||||
|
||||
if !PermaProps.IsSuperAdmin(ply) then ply:ChatPrint("Access denied for user") return end
|
||||
|
||||
end
|
||||
|
||||
if Content["CMD"] == "DEL" then
|
||||
|
||||
|
@ -11,13 +11,14 @@ function PermaPropsULX()
|
||||
|
||||
if ULib and ULib.ucl then
|
||||
|
||||
ULib.ucl.registerAccess( "permaprops_tool", ULib.ACCESS_ADMIN, "Ability to use tool en perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_tool", ULib.ACCESS_ADMIN, "Ability to use the tool perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_phys", ULib.ACCESS_ADMIN, "Ability to phys perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_property", ULib.ACCESS_ADMIN, "Ability to property perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_save", ULib.ACCESS_ADMIN, "Ability to save props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_delete", ULib.ACCESS_ADMIN, "Ability to delete perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_update", ULib.ACCESS_ADMIN, "Ability to update perma props", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_menu", ULib.ACCESS_ADMIN, "Ability to open the menu", "PermaProps" )
|
||||
ULib.ucl.registerAccess( "permaprops_menu_cfg", ULib.ACCESS_SUPERADMIN, "Ability to use Configuration", "PermaProps" )
|
||||
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user