cookieY / Yearning

🐳 A most popular sql audit platform for mysql
http://next.yearning.io/
GNU Affero General Public License v3.0
8.5k stars 1.99k forks source link

[Question] 用户管理中的用户审计人权限默认值回显问题 #991

Closed bh1avw closed 2 months ago

bh1avw commented 9 months ago

描述问题 当新建完成的用户,或是默认的admin用户,默认的审计人为否,但是在管理界面默认显示为“是”,这时反复登录后,均无法看到设计菜单,只有当重新编辑保存后,才能正常显示审计权限。

复现 重现该行为的步骤:

  1. 新建用户
  2. 看到默认审计人为“是”,此时反复登录均无法看到审计人菜单
  3. 在用户管理界面中编辑用户,点击审计人,下拉显示0,重新选择“是”后保存,重新登录则正常。

期望的结果 修正回显值

截图

image

部署方式

环境 (请填写环境信息):

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question] The default value of user auditor permissions in user management is echoed

Describe the problem When the user is newly created or the default admin user, the default auditor is No, but it is displayed as "Yes" by default in the management interface. After logging in repeatedly, the design menu cannot be seen. Only after re-editing and saving, Only then can the audit permissions be displayed normally.

recurrent Steps to reproduce the behavior:

  1. Create a new user
  2. You see that the default auditor is "Yes". At this time, you cannot see the auditor menu after logging in repeatedly.
  3. Edit the user in the user management interface, click Auditor, the drop-down menu displays 0, re-select "Yes" and save, then log in again and it will be normal.

Desired results Correct echo value

screenshot

image

Deployment method

Environment (please fill in environmental information):