/**
  * Used by the track chair app to allow chairs to remove a presentation from a personal list.
  **/
 public function removeFromIndividualList($pass = false)
 {
     // Check permissions of user on talk
     if ($this->owner->CanAssign()) {
         $mySelections = SummitSelectedPresentationList::getMemberList($this->owner->CategoryID);
         // See if the presentation has already been assigned
         $alreadyAssigned = $mySelections->SummitSelectedPresentations()->filter('PresentationID', $this->owner->ID);
         if ($alreadyAssigned->exists()) {
             $alreadyAssigned->delete();
         }
     }
 }
Ejemplo n.º 2
0
 /**
  * Used by the track chair app to allow chairs to remove a presentation from a personal list.
  **/
 public function removeFromIndividualList()
 {
     // Check permissions of user on talk
     if ($this->CanAssign()) {
         $MySelections = SummitSelectedPresentationList::getMemberList($this->CategoryID);
         // See if the presentation has already been assigned
         $AlreadyAssigned = $MySelections->SummitSelectedPresentations('PresentationID = ' . $this->ID)->first();
         if ($AlreadyAssigned->exists()) {
             $AlreadyAssigned->delete();
         }
     }
 }