HOR-3851
This commit is contained in:
@@ -101,11 +101,11 @@ class EnterpriseClass extends PMPlugin
|
||||
{
|
||||
$oServerConf = &ServerConf::getSingleton();
|
||||
$infoLicense =$oServerConf->getProperty('LICENSE_INFO');
|
||||
if (isset($infoLicense[SYS_SYS]['LIMIT_USERS'])) {
|
||||
if (isset($infoLicense[config("sys_sys")]['LIMIT_USERS'])) {
|
||||
$criteria = new Criteria('workflow');
|
||||
$criteria->add(UsersPeer::USR_STATUS, 'CLOSED', Criteria::NOT_EQUAL);
|
||||
$count = UsersPeer::doCount($criteria);
|
||||
if ($count >= $infoLicense[SYS_SYS]['LIMIT_USERS'] ) {
|
||||
if ($count >= $infoLicense[config("sys_sys")]['LIMIT_USERS'] ) {
|
||||
throw new Exception("You can\'t add more users to the System, this reach the limit of allowed users by license that it has installed now");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user