/**
  * Removes a Member
  */
 public function actionRemoveMember()
 {
     $this->forcePostRequest();
     $workspace = $this->getSpace();
     $userGuid = Yii::$app->request->get('userGuid');
     $user = User::model()->findByAttributes(array('guid' => $userGuid));
     if ($workspace->isSpaceOwner($user->id)) {
         throw new CHttpException(500, 'Owner cannot be removed!');
     }
     $workspace->removeMember($user->id);
     // Redirect  back to Administration page
     $this->htmlRedirect($this->createUrl('//space/admin/members', array('sguid' => $workspace->guid)));
 }