mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
PHPDoc
This commit is contained in:
@@ -365,7 +365,7 @@ abstract class User extends cmdbAbstractObject
|
|||||||
$this->m_aCheckIssues[] = Dict::S('Class:User/Error:AtLeastOneProfileIsNeeded');
|
$this->m_aCheckIssues[] = Dict::S('Class:User/Error:AtLeastOneProfileIsNeeded');
|
||||||
}
|
}
|
||||||
|
|
||||||
// A user cannot add a profile denying the access to the backoffice
|
// A user cannot add to themself a profile denying the access to the backoffice
|
||||||
$aForbiddenProfiles = PortalDispatcherData::GetData('backoffice')['deny'];
|
$aForbiddenProfiles = PortalDispatcherData::GetData('backoffice')['deny'];
|
||||||
if ($this->IsCurrentUser()) {
|
if ($this->IsCurrentUser()) {
|
||||||
$oSet->Rewind();
|
$oSet->Rewind();
|
||||||
@@ -471,6 +471,10 @@ abstract class User extends cmdbAbstractObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
* @since 3.0.0
|
||||||
|
*/
|
||||||
public function DoCheckToDelete(&$oDeletionPlan)
|
public function DoCheckToDelete(&$oDeletionPlan)
|
||||||
{
|
{
|
||||||
parent::DoCheckToDelete($oDeletionPlan);
|
parent::DoCheckToDelete($oDeletionPlan);
|
||||||
@@ -598,6 +602,7 @@ abstract class User extends cmdbAbstractObject
|
|||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
* @throws \OQLException
|
* @throws \OQLException
|
||||||
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
private function IsCurrentUser(): bool
|
private function IsCurrentUser(): bool
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user