applications/dashboard/controllers/class.profilecontroller.php
public function Clear($UserID = '') {
      if (empty($_POST))
         throw PermissionException('Javascript');
      
      $UserID = is_numeric($UserID) ? $UserID : 0;
      $Session = Gdn::Session();
      if ($UserID != $Session->UserID && !$Session->CheckPermission('Garden.Moderation.Manage'))
         throw PermissionException('Garden.Moderation.Manage');

      if ($UserID > 0)
         $this->UserModel->SaveAbout($UserID, '');

      if ($this->DeliveryType() == DELIVERY_TYPE_ALL)
         Redirect('/profile');
      else {
         $this->JsonTarget('#Status', '', 'Remove');
         $this->Render('Blank', 'Utility');
      }
   }
public function Clear($UserID = '') {
      if (empty($_POST))
         throw PermissionException('Javascript');
      
      $UserID = is_numeric($UserID) ? $UserID : 0;
      $Session = Gdn::Session();
      if ($UserID != $Session->UserID && !$Session->CheckPermission('Garden.Moderation.Manage'))
         throw PermissionException('Garden.Moderation.Manage');

      if ($UserID > 0)
         $this->UserModel->SaveAbout($UserID, '');

      if ($this->DeliveryType() == DELIVERY_TYPE_ALL)
         Redirect('/profile');
      else {
         $this->JsonTarget('#Status', '', 'Remove');
         $this->Render('Blank', 'Utility');
      }
   }
public function Clear ( $ UserID = '' ) { if ( empty ( $ _POST ) ) throw PermissionException ( 'Javascript' ) ; $ UserID = is_numeric ( $ UserID ) ? $ UserID : 0 ; $ Session = Gdn :: Session ( ) ; if ( $ UserID != $ Session -> UserID && ! $ Session -> CheckPermission ( 'Garden.Moderation.Manage' ) ) throw PermissionException ( 'Garden.Moderation.Manage' ) ; if ( $ UserID > 0 ) $ this -> UserModel -> SaveAbout ( $ UserID , '' ) ; if ( $ this -> DeliveryType ( ) == DELIVERY_TYPE_ALL ) Redirect ( '/profile' ) ; else { $ this -> JsonTarget ( '#Status' , '' , 'Remove' ) ; $ this -> Render ( 'Blank' , 'Utility' ) ; } }
Clear user's current status message.

@since 2.0.0
@access public
@param mixed $UserID
Clear user s current status message .