diff --git a/[admin]/admin/server/admin_server.lua b/[admin]/admin/server/admin_server.lua index aa3e93014..ef6aaf804 100644 --- a/[admin]/admin/server/admin_server.lua +++ b/[admin]/admin/server/admin_server.lua @@ -675,9 +675,9 @@ local aAdminRights = { } addEvent ( "aAdmin", true ) addEventHandler ( "aAdmin", root, function ( action, ... ) - if not action then + if not action then return - end + end if checkClient( aAdminRights[action] or true, source, 'aAdmin', action ) then return end diff --git a/[admin]/admin/server/admin_sync.lua b/[admin]/admin/server/admin_sync.lua index cfc35b058..bee57e357 100644 --- a/[admin]/admin/server/admin_sync.lua +++ b/[admin]/admin/server/admin_sync.lua @@ -58,9 +58,9 @@ function aSynchCoroutineFunc( type, data, typeOfTag, banSearchTag ) end end elseif ( type == "resources" ) then - if not hasObjectPermissionTo( source, "general.tab_resources" ) then + if not hasObjectPermissionTo( source, "general.tab_resources" ) then return - end + end local resourceTable = getResources() local tick = getTickCount() local antiCorMessageSpam = 0