diff --git a/lua/starfall/libs_sh/builtins.lua b/lua/starfall/libs_sh/builtins.lua index 4942cae72..9b851f700 100644 --- a/lua/starfall/libs_sh/builtins.lua +++ b/lua/starfall/libs_sh/builtins.lua @@ -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