mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
role basics
This commit is contained in:
@@ -149,13 +149,14 @@ class UserRepository extends BaseRepository
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use User::listClass() instead !
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function listClass()
|
||||
{
|
||||
$out = [];
|
||||
foreach(User::$classes as $key => $value) {
|
||||
$out[(string)$key] = $value['text'];
|
||||
}
|
||||
return $out;
|
||||
return User::listClass();
|
||||
}
|
||||
|
||||
public function disableUser(User $operator, $uid, $reason)
|
||||
|
||||
Reference in New Issue
Block a user