Update showUserInfo rule

This commit is contained in:
Visman 2023-07-04 21:28:37 +07:00
parent fedc6be825
commit c809180c50
3 changed files with 3 additions and 3 deletions

View file

@ -289,7 +289,7 @@ class User extends DataModel
*/
protected function getshowUserInfo(): bool
{
return 1 === $this->c->config->b_show_user_info;
return $this->isAdmin || 1 === $this->c->config->b_show_user_info;
}
/**

View file

@ -91,7 +91,7 @@ msgid "Info in posts label"
msgstr "User info in posts"
msgid "Info in posts help"
msgstr "Show information about the poster under the username in topic view. The information affected is location, register date, post count and the contact links (email and URL)."
msgstr "Show information about the poster under the username in topic view. The information affected is location, register date, post count and the contact links (email and URL). Does not affect administrators."
msgid "Post count label"
msgstr "User post count"

View file

@ -91,7 +91,7 @@ msgid "Info in posts label"
msgstr "Информация о пользователе"
msgid "Info in posts help"
msgstr "Показывать информацию об авторе сообщения на странице с темой. Сюда входят данные о месте жительства, дата регистрации, счетчик сообщений и контакты (адрес электронной почты и вебстраница)."
msgstr "Показывать информацию об авторе сообщения на странице с темой. Сюда входят данные о месте жительства, дата регистрации, счетчик сообщений и контакты (адрес электронной почты и вебстраница). Не влияет на администраторов."
msgid "Post count label"
msgstr "Счетчик сообщений"