N°478 - Customizable access to the 'Admin Tools'

SVN:trunk[5364]
This commit is contained in:
Eric Espié
2018-02-23 11:13:07 +00:00
parent b952f9da4a
commit d65bd97956
29 changed files with 738 additions and 264 deletions

View File

@@ -254,8 +254,8 @@ abstract class User extends cmdbAbstractObject
return $this->oContactObject;
}
/*
* Overload the standard behavior
/**
* Overload the standard behavior.
*/
public function DoCheckToWrite()
{
@@ -286,6 +286,12 @@ abstract class User extends cmdbAbstractObject
{
$this->m_aCheckIssues[] = Dict::Format('Class:User/Error:AtLeastOneProfileIsNeeded');
}
// Only administrators can manage administrators
if (UserRights::IsAdministrator($this) && !UserRights::IsAdministrator())
{
$this->m_aCheckIssues[] = Dict::Format('UI:Login:Error:AccessRestricted');
}
}
function GetGrantAsHtml($sClass, $iAction)