瀏覽代碼

feat: role 47

shc 5 月之前
父節點
當前提交
81e3305671

+ 7 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/SysUserController.java

@@ -1144,9 +1144,15 @@ public class SysUserController {
             query.setDeptId(user.getDeptId());
             needArea = true;
         }
+        // 备案管理员
+        else if (operatorRoleIds.contains(47)) {
+            role = roleId2RoleMap.get(47);
+        }
+
+
 
         if (role == null) {
-            throw new BizException("当前用户角色不可用");
+            throw new BizException("当前用户角色禁止查看其他角色");
         } else {
             String visible = role.getVisible();
             if (StrUtil.isBlank(visible)) {