/**
  * A method to check if user is allowed to perform certain actions on meeting
  * No access if:
  * 1. Meeting is not approved
  * 2. Meeting has taken place
  * @param Meeting $meeting the meeting object
  * @return bool true if allowed
  */
 protected function checkAuthIsNotApproved($meeting)
 {
     # No access if:
     # 1. Meeting is not approved
     # 2. Meeting has taken place
     if (!$meeting->getIsApproved() || $meeting->getTakenPlace()) {
         header('Location: ' . SITE_URL . 'meetings');
         # Do not execute code any longer
         die;
     } else {
         return true;
     }
 }