Browse Source

Update showUserInfo rule

Visman 2 years ago
parent
commit
c809180c50
3 changed files with 3 additions and 3 deletions
  1. 1 1
      app/Models/User/User.php
  2. 1 1
      app/lang/en/admin_options.po
  3. 1 1
      app/lang/ru/admin_options.po

+ 1 - 1
app/Models/User/User.php

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

+ 1 - 1
app/lang/en/admin_options.po

@@ -91,7 +91,7 @@ msgid "Info in posts label"
 msgstr "User info in posts"
 msgstr "User info in posts"
 
 
 msgid "Info in posts help"
 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"
 msgid "Post count label"
 msgstr "User post count"
 msgstr "User post count"

+ 1 - 1
app/lang/ru/admin_options.po

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