用户中心bug
This commit is contained in:
@@ -18,7 +18,7 @@ class Base extends BaseC {
|
||||
|
||||
protected function initialize() {
|
||||
$url = str_replace(".", "/", strtolower($this->request->controller())) . '/' . $this->request->action();
|
||||
if (!is_login() and !in_array($url, array('admin/index/login', 'admin/index/logout', 'admin/index/verify'))) {
|
||||
if (!is_login() && !in_array($url, array('user/index/login', 'user/index/logout', 'user/index/verify', 'user/index/register'))) {
|
||||
$this->redirect('/user/index/login');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user