1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-03 23:46:49 +08:00

优化PC页面到手机的自动跳转,修复管理后台若干问题

This commit is contained in:
koogua 2021-10-16 16:27:02 +08:00
parent f9f1d1129a
commit 238e49633b

View File

@ -53,7 +53,7 @@ class Controller extends \Phalcon\Mvc\Controller
/**
* demo分支拒绝数据提交100001帐号除外
*/
if ($this->isNotSafeRequest() && $this->authInfo['id'] != 100001) {
if ($this->isNotSafeRequest() && $this->authUser->id != 100001) {
$dispatcher->forward([
'controller' => 'public',
'action' => 'forbidden',