This commit is contained in:
Malboro 2016-06-06 16:15:39 +02:00
parent 2d9e24d624
commit 3243e333d9
2 changed files with 10 additions and 1 deletions

View File

@ -54,7 +54,15 @@ end
local function pp_open_menu( ply )
if !PermaProps.IsAdmin(ply) then return end
if ULib and ULib.ucl then
if !ULib.ucl.query( ply, "permaprops_menu" ) then return end
else
if !PermaProps.IsAdmin(ply) then return end
end
local SendTable = {}
local Data_PropsList = sql.Query( "SELECT * FROM permaprops WHERE map = ".. sql.SQLStr(game.GetMap()) .. ";" )

View File

@ -17,6 +17,7 @@ function PermaPropsULX()
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" )
end