mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
add new permission for super administrators
This commit is contained in:
parent
e527d42fd1
commit
1ce097c4e9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user