This commit is contained in:
Nayruden 2016-09-04 15:20:28 -05:00
parent 9f459dc083
commit bb22495876
3 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# ULib Changelog
## v2.62 - *(00/00/00)*
* [ADD] Enhancements from CAMI.
* [ADD] Enhancements from and to CAMI.
## v2.61 - *(05/22/16)*
* [FIX] NPCs loading from saves (Thanks, GamingStudios1029).

View File

@ -16,10 +16,12 @@ CAMI.ULX_TOKEN = "ULX"
local function playerHasAccess( actorPly, priv, callback, targetPly, extra )
local priv = priv:lower()
local result = ULib.ucl.query( actorPly, priv, true )
if result ~= nil then
callback(result)
return true
end
-- CAMI does not support floating access like ULX -- meaning that in ULX the
-- access does not have to be tied to a group, but CAMI requires an access to
-- be tied to a group. To work around this, ULX cannot defer an access
-- decision, but has to give an authoritative answer to each query.
callback(not not result) -- double not converts a nil to a false
return true
end
hook.Add( "CAMI.PlayerHasAccess", "ULXCamiPlayerHasAccess", playerHasAccess )

View File

@ -1 +1 @@
1465756882
1473020428