Skip to content

Commit

Permalink
Update server.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
bleonheart committed Aug 30, 2024
1 parent 72f7c96 commit c7402a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lilia/modules/core/permissions/libraries/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end

function GM:CanTool(client, _, tool)
local privilege = "Staff Permissions - Access Tool " .. tool:gsub("^%l", string.upper)
if table.HasValue(MODULE.DisallowedTools, tool) then return false end
if table.HasValue(MODULE.DisallowedTools, tool) and not client:IsSuperAdmin() then return false end
if client:IsSuperAdmin() or ((client:isStaffOnDuty() or client:getChar():hasFlags("t")) and client:HasPrivilege(privilege)) then return true end
end

Expand Down

0 comments on commit c7402a0

Please sign in to comment.