add new permission for super administrators

This commit is contained in:
printempw 2016-07-28 15:02:47 +08:00
parent e527d42fd1
commit 1ce097c4e9

View File

@ -54,7 +54,8 @@ class User
$this->password = $this->eloquent_model->password;
$this->token = md5($this->email . $this->password . $_ENV['SALT']);
$this->closet = new Closet($this->uid);
$this->is_admin = ($this->eloquent_model->permission == 1);
$this->is_admin = $this->eloquent_model->permission == 1 ||
$this->eloquent_model->permission == 2;
}
}