|
|
@@ -417,9 +417,14 @@ class BxDolAccount extends BxDolFactory implements iBxDolSingleton
|
|
|
*/
|
|
|
static public function isAllowedDelete ($iProfileId, $aContentInfo, $isPerformAction = false)
|
|
|
{
|
|
|
+ $iAccountId = (int)BxDolProfile::getInstance($iProfileId)->getAccountId();
|
|
|
+ if(isAdmin($iAccountId) && $iAccountId == (int)$aContentInfo['id'])
|
|
|
+ return _t('_sys_txt_access_denied');
|
|
|
+
|
|
|
$aCheck = checkActionModule($iProfileId, 'delete account', 'system', $isPerformAction);
|
|
|
if ($aCheck[CHECK_ACTION_RESULT] !== CHECK_ACTION_RESULT_ALLOWED)
|
|
|
- return MsgBox($aCheck[CHECK_ACTION_MESSAGE]);
|
|
|
+ return $aCheck[CHECK_ACTION_MESSAGE];
|
|
|
+
|
|
|
return CHECK_ACTION_RESULT_ALLOWED;
|
|
|
}
|
|
|
|