Exemplo n.º 1
0
 public static function isAllowed($controller, $action, \Jazzee\Entity\User $user = null, \Jazzee\Entity\Program $program = null, \Jazzee\Entity\Application $application = null)
 {
     if ($application and $application->isPublished()) {
         $action = 'liveIndex';
     } else {
         $action = 'index';
     }
     //all action authorizations are controlled by the index action
     return parent::isAllowed($controller, $action, $user, $program, $application);
 }
Exemplo n.º 2
0
 public static function isAllowed($controller, $action, \Jazzee\Entity\User $user = null, \Jazzee\Entity\Program $program = null, \Jazzee\Entity\Application $application = null)
 {
     //all action authorizations are controlled by the index action
     $action = 'index';
     return parent::isAllowed($controller, $action, $user, $program, $application);
 }