浏览代码

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 "Счетчик сообщений"