コード例 #1
0
 public function beforeAction($handlerAdapter)
 {
     parent::beforeAction($handlerAdapter);
     $result = $this->loginUser->getPermission('panel_recycle_manage', false, array());
     if (!$result['recycle']) {
         $this->showError('BBS:recycle.right.error');
     }
 }
コード例 #2
0
ファイル: ContentController.php プロジェクト: fanqimeng/4tweb
 public function beforeAction($handlerAdapter)
 {
     parent::beforeAction($handlerAdapter);
     $result = $this->loginUser->getPermission('panel_bbs_manage', false, array());
     if (!$result['thread_check']) {
         $this->showError('BBS:manage.thread_check.right.error');
     }
 }