This commit is contained in:
Nayruden 2015-12-12 19:57:02 -05:00
parent 56b2c84643
commit 11a338ce11

View File

@ -69,7 +69,10 @@ local function onUsersGroupChanged( ply, oldGroup, newGroup, originToken )
if not id then id = ply:SteamID() end
if newGroup == ULib.ACCESS_ALL then
ULib.ucl.removeUser( id, true )
-- If they are becoming a regular user, and they had access, then remove them
if ULib.ucl.users[ id ] then
ULib.ucl.removeUser( id, true )
end
else
if not ULib.ucl.groups[ newGroup ] then -- Just in case we were never notified of this group
local camiGroup = CAMI.GetUsergroup(usergroupName)