forked from TeamUlysses/ulib
Fixes #25
This commit is contained in:
parent
9f459dc083
commit
bb22495876
@ -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).
|
||||
|
@ -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 )
|
||||
|
||||
|
@ -1 +1 @@
|
||||
1465756882
|
||||
1473020428
|
||||
|
Loading…
Reference in New Issue
Block a user