コード例 #1
0
 /**
  * Validates parameters to display the 'add participants' form.
  */
 public function validateGetAddParticipantsForm()
 {
     $this->conversation = $this->getSingleObject();
     if (!Conversation::isParticipant(array($this->conversation->conversationID)) || !$this->conversation->canAddParticipants()) {
         throw new PermissionDeniedException();
     }
 }