/**
  * set account status
  *
  * @param   string $_accountId  account id
  * @param   string $_status     status to set
  * @return  array with success flag
  */
 public function setAccountStatus($_accountId, $_status)
 {
     $this->checkRight('MANAGE_ACCOUNTS');
     $result = $this->_userBackend->setStatus($_accountId, $_status);
     if ($_status === Tinebase_Model_FullUser::ACCOUNT_STATUS_DISABLED) {
         // TODO send this for blocked/expired, too? allow to configure this?
         Tinebase_User::getInstance()->sendDeactivationNotification($_accountId);
     }
     return $result;
 }
Example #2
0
 /**
  * set account status
  *
  * @param   string $_accountId  account id
  * @param   string $_status     status to set
  * @return  array with success flag
  */
 public function setAccountStatus($_accountId, $_status)
 {
     $this->checkRight('MANAGE_ACCOUNTS');
     $result = $this->_userBackend->setStatus($_accountId, $_status);
     return $result;
 }