diff --git a/Application/Home/Controller/PromoteGradeController.class.php b/Application/Home/Controller/PromoteGradeController.class.php index f7255d9c6..0ef57eb7e 100644 --- a/Application/Home/Controller/PromoteGradeController.class.php +++ b/Application/Home/Controller/PromoteGradeController.class.php @@ -12,7 +12,8 @@ class PromoteGradeController extends BaseController protected function _initialize() { C(api('Config/lists')); - if((C('APP_ENV') == 'dev' || $loginer['company_id'] == 334) && $loginer['level'] <= 2) { + $loginPromote = $this->getLoginPromote(); + if((C('APP_ENV') == 'dev' || $loginPromote['company_id'] == 334) && $loginPromote['level'] <= 2) { } else { return $this->error('您没有权限');