This commit is contained in:
2026-06-19 12:30:12 +08:00
parent 67872f823c
commit 46e5a5eeee

View File

@@ -131,8 +131,8 @@ def verify_kefu_permission(request, username_from_frontend=None):
except Exception: except Exception:
permissions = [] permissions = []
# 超级用户自动拥有所有权限 # 管理员/超级用户自动拥有所有权限
if current_user.IsSuperuser and '000001' not in permissions: if is_admin and '000001' not in permissions:
permissions.insert(0, '000001') permissions.insert(0, '000001')
# 拥有 000001超级管理权限的用户自动获得所有功能权限 # 拥有 000001超级管理权限的用户自动获得所有功能权限