Exemplo n.º 1
0
 /**
  * Хук Роутера
  *
  * @param object $Router
  * @param Callback $callback
  */
 public function hookRouterExec($Router, Callback $callback)
 {
     if (!access($callback->getCallback(0)->gear . '.*') && !access($callback->getCallback(0)->gear . '.' . str_replace('_action', '', $callback->getCallback(1)))) {
         event('403');
         return FALSE;
     }
 }