mirror of
https://github.com/Combodo/iTop.git
synced 2026-07-11 17:26:36 +02:00
Check if class UserToken exists
This commit is contained in:
@@ -133,8 +133,11 @@ class ITopUserCountingRepository
|
||||
}
|
||||
}
|
||||
|
||||
$aUserToken = $this->GetApplicationUsers();
|
||||
return array_diff($aReadOnlyUsers, $aUserToken);
|
||||
if (MetaModel::IsValidClass('UserToken')) {
|
||||
$aUserToken = $this->GetApplicationUsers();
|
||||
$aReadOnlyUsers = array_diff($aReadOnlyUsers, $aUserToken);
|
||||
}
|
||||
return $aReadOnlyUsers;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user