hahagahaha

This commit is contained in:
27942
2026-01-27 01:12:24 +08:00
parent c0c26986d0
commit a84da888ce
3 changed files with 16 additions and 7 deletions

View File

@@ -1447,10 +1447,11 @@ class confirmdisplay(APIView):
user_department_names = list(user_departments)
# 判断是否有权限查看所有数据:管委会角色或财务部角色或财务部部门
# 使用模糊匹配"财务"关键词,与 get_finance_personincharge_candidates() 保持一致
has_all_permission = (
'管委会' in user_role_names or
'财务部' in user_role_names or
'财务' in user_department_names
any('财务' in name for name in user_department_names)
)
# 构建查询条件