This commit is contained in:
Malboro 2016-06-08 01:06:46 +02:00
parent 3243e333d9
commit 34a7a78eaf
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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