/** * beforeFilter * * @return void */ public function beforeFilter() { parent::beforeFilter(); //CategoryEditComponent外す if (in_array($this->params['action'], ['index', 'delete'], true)) { $this->Components->unload('Categories.CategoryEdit'); } }
/** * beforeFilter * * @return void */ public function beforeFilter() { parent::beforeFilter(); // 権限判定が必要 $this->Auth->deny('edit'); // 暫定対応(;'∀') 下記はいずれ、ページの左右のおかず表示対応と一緒に、親側で定義される $results = $this->camelizeKeyRecursive($this->NetCommonsFrame->data); $this->set($results); //タブの設定 $this->initTabs('frame_settings', ''); }
/** * beforeFilter * * @return void */ public function beforeFilter() { parent::beforeFilter(); // 権限判定が必要 $this->Auth->deny('edit'); $this->layout = 'NetCommons.setting'; $results = $this->camelizeKeyRecursive($this->NetCommonsFrame->data); $this->set($results); //タブの設定 $this->initTabs('block_index', 'role_permissions'); }
/** * beforeFilter * * @return bool * @see NetCommonsAppController::beforeFilter() */ public function beforeFilter() { parent::beforeFilter(); // ブロック未選択は、何も表示しない if (!Current::read('Block.id')) { $this->setAction('emptyRender'); return false; } // FFMPEG有効フラグ $this->set('isFfmpegEnable', $this->Video->isFfmpegEnable()); }
/** * beforeFilter * * @return void * @see NetCommonsAppController::beforeFilter() */ public function beforeFilter() { parent::beforeFilter(); // ブロック未選択は、何も表示しない if (!Current::read('Block.id')) { $this->setAction('emptyRender'); return false; } // ゲストアクセスOKのアクションを設定 $this->Auth->allow('tag', 'file', 'embed'); // FFMPEG有効フラグ $this->set('isFfmpegEnable', $this->Video->isFfmpegEnable()); // (編集長以上が使える)ダウンロードリンクを使用する $this->set('useDownloadLink', $this->useDownloadLink); }
/** * beforeFilter * * @return void */ public function beforeFilter() { // 権限判定が必要 $this->Auth->deny('add', 'edit', 'delete'); parent::beforeFilter(); }
/** * beforeFilter * * @return void */ public function beforeFilter() { // ゲストアクセスOKのアクションを設定 $this->Auth->allow('tag'); parent::beforeFilter(); }