Skip to content

Commit

Permalink
Fix hasPermission. Fixes: #1520
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrb93 committed Sep 16, 2023
1 parent d9897f4 commit 28de272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/starfall/libs_sh/builtins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ end
-- @return boolean Whether the client has granted the specified permission.
function builtins_library.hasPermission(perm, obj)
checkluatype(perm, TYPE_STRING)
if not SF.Permissions.permissionchecks[perm] then SF.Throw("Permission doesn't exist", 2) end
if not SF.Permissions.privileges[perm] then SF.Throw("Permission doesn't exist", 2) end
return haspermission(instance, ounwrap(obj), perm)
end

Expand Down

0 comments on commit 28de272

Please sign in to comment.