فهرست منبع

Update showUserInfo rule

Visman 2 سال پیش
والد
کامیت
c809180c50
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  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
     {
-        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"
 
 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"

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

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