check against the class /name/...
This commit is contained in:
parent
ff40907fe3
commit
e79d26ae8c
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class User {
|
||||||
* @retval bool
|
* @retval bool
|
||||||
*/
|
*/
|
||||||
public function is_admin() {
|
public function is_admin() {
|
||||||
return ($this->class === "admin");
|
return ($this->class->name === "admin");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function set_class(/*string*/ $class) {
|
public function set_class(/*string*/ $class) {
|
||||||
|
|
Reference in a new issue