Commits

Anonymous committed 8dc34ca

修正系统存在多个登陆(比如前后台)的情况下不能正确获取用户登录信息的错误

  • Participants
  • Parent commits 75d86cc

Comments (0)

Files changed (1)

File RbacModule.php

     public $userTableName = 'name';
 
     /**
-     * CWebUser stateKeyPrefix 设定
-     * @var string
+     * CWebUser 设定
+     * @var array
      */
-    public $cWebUserStateKeyPrefix = null;
+    public $webUserSettings = array(
+        'class' => 'CWebUser',
+        'allowAutoLogin' => true,
+    );
 
     /**
      * Default role name
             'errorHandler' => array(
                 'class' => 'CErrorHandler',
                 'errorAction' => '/rbac/default/error',
-                )), false);
+            ),
+            'user' => $this->webUserSettings,
+                ), false);
     }
 
     /**