mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
Archives: show the menu 'activate archive mode' only if there is at least one archivable class
SVN:trunk[4701]
This commit is contained in:
@@ -657,8 +657,8 @@ class UserRights
|
||||
}
|
||||
else
|
||||
{
|
||||
// As of now, anybody can swith to the archive mode
|
||||
$bRet = true;
|
||||
// As of now, anybody can switch to the archive mode as soon as there is an archivable class
|
||||
$bRet = (count(MetaModel::EnumArchivableClasses()) > 0);
|
||||
$_SESSION['archive_allowed'] = $bRet;
|
||||
}
|
||||
return $bRet;
|
||||
|
||||
Reference in New Issue
Block a user