public function __construct() { parent::__construct(); $this->requireManagePermission(Permission::PERMISSION_MANAGE_UCIONICA); $this->requireWatchPermission(Permission::PERMISSION_VIEW_UCIONICA); $this->requireDeletePermission(Permission::PERMISSION_REMOVE_UCIONICA); }
public function __construct($default = array()) { parent::__construct($default); // Register $this->registerTask('add', 'edit'); $this->registerTask('apply', 'save'); $this->registerTask('saveandnew', 'save'); // load assets $this->app->document->addScript('zoocart:assets/js/admin.js'); }
public function __construct() { parent::__construct(); $this->beforeFilter(function () { if (!(Auth::check() && Auth::user()->hasPermission(Permission::PERMISSION_REMOVE_NALATA))) { return Redirect::to('logout'); } }, array('only' => array('destroy_naplata'))); $this->beforeFilter('novaRezervacija', array('only' => array('create', 'store'))); $this->beforeFilter('myRezervacija', array('only' => array('copy', 'create_naplata', 'store_napata', 'edit', 'update', 'destroy'))); }
public function __construct() { parent::__construct(); $this->requireWatchPermission(Permission::PERMISSION_VIEW_KLIJENT); $this->requireManagePermission(Permission::PERMISSION_MANAGE_KLIJENT); $this->beforeFilter(function () { if (!(Auth::check() && Auth::user()->hasPermission(Permission::PERMISSION_VIEW_KLIJENT))) { return Redirect::to('logout'); } }, array('only' => array('rezervacije'))); }
public function __construct() { parent::__construct(); $this->requireManagePermission(Permission::PERMISSION_MANAGE_CJENOVNIK); $this->requireWatchPermission(Permission::PERMISSION_VIEW_CJENOVNIK); $this->requireDeletePermission(Permission::PERMISSION_REMOVE_CJENOVNIK); $this->beforeFilter(function () { if (!(Auth::check() && Auth::user()->hasPermission($this->watchPermissions))) { return Redirect::to('logout'); } }, array('only' => array('_table'))); }
public function __construct() { parent::__construct(); $this->requireDeletePermission(Permission::PERMISSION_REMOVE_USER); $this->beforeFilter(function () { if (!Auth::user()->hasPermission(Permission::PERMISSION_VIEW_USER)) { return Redirect::to('logout'); } }, array('only' => array('index', '_list'))); $this->beforeFilter(function () { if (!Auth::user()->hasPermission(Permission::PERMISSION_MANAGE_USER)) { return Redirect::to('logout'); } }, array('only' => array('create', 'store'))); $this->beforeFilter('ViewProfile', array('only' => array('show'))); $this->beforeFilter('ManageProfile', array('only' => array('changePassword', 'postChangePassword', 'edit', 'update'))); $this->beforeFilter(function ($route) { if (!(Auth::user()->hasPermission(Permission::PERMISSION_PASSWORD_RESET) || Auth::id() == $route->getParameter('Djelatnik'))) { return Redirect::to('logout'); } }, array('only' => array('changePassword', 'postChangePassword'))); }
/** @inheritdoc */ public function __construct() { parent::__construct(); $this->middleware('auth'); }
public function __construct($default = array()) { parent::__construct($default); // load zlux assets $this->app->zlfw->zlux->loadMainAssets(true); }
public function __construct() { parent::__construct(); $this->setBreadCrumbs([]); }
public function __construct($request) { parent::__construct($request); }