The title Guest should be displayed before the title Banned
This commit is contained in:
parent
86ca176c0a
commit
2e108b2edd
1 changed files with 3 additions and 3 deletions
|
@ -215,14 +215,14 @@ class User extends DataModel
|
|||
*/
|
||||
public function title(): string
|
||||
{
|
||||
if ($this->isBanByName) {
|
||||
if ($this->isGuest) {
|
||||
return __('Guest');
|
||||
} elseif ($this->isBanByName) {
|
||||
return __('Banned');
|
||||
} elseif ('' != $this->title) {
|
||||
return $this->censorTitle;
|
||||
} elseif ('' != $this->g_user_title) {
|
||||
return $this->censorG_user_title;
|
||||
} elseif ($this->isGuest) {
|
||||
return __('Guest');
|
||||
} elseif ($this->isUnverified) {
|
||||
return __('Unverified');
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue