From df473ae313da08bfb0deed26d077cafac91292a3 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 28 Jul 2021 15:31:22 +0200 Subject: [PATCH] PHPDoc --- core/userrights.class.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index 5f6d11c927..a95ebae1de 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -365,7 +365,7 @@ abstract class User extends cmdbAbstractObject $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']; if ($this->IsCurrentUser()) { $oSet->Rewind(); @@ -471,6 +471,10 @@ abstract class User extends cmdbAbstractObject } } + /** + * @inheritDoc + * @since 3.0.0 + */ public function DoCheckToDelete(&$oDeletionPlan) { parent::DoCheckToDelete($oDeletionPlan); @@ -598,6 +602,7 @@ abstract class User extends cmdbAbstractObject /** * @return bool * @throws \OQLException + * @since 3.0.0 */ private function IsCurrentUser(): bool {