Esempio n. 1
0
 /**
  *	deleteUser - delete a user's permissions.
  *
  *	@param	int		user_id of the user who's permissions to delete.
  *	@return boolean	success.
  */
 function deleteUser($id)
 {
     global $Language;
     if (!$this->userIsAdmin()) {
         $this->setError($Language->getText('plugin_tracker_common_canned', 'perm_denied'));
         return false;
     }
     if (!$id) {
         $this->setError($Language->getText('plugin_tracker_common_canned', 'missing_param'));
         return false;
     }
     $perm_dao = new Tracker_PermDao();
     if ($perm_dao->deleteUser($id, $this->getId())) {
         return true;
     } else {
         return false;
     }
 }