浏览代码

fix:显示共有权限和私有权限

zqbao 9 月之前
父节点
当前提交
0fcf5f2e07
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      controllers/user.go

+ 2 - 5
controllers/user.go

@@ -579,12 +579,9 @@ func (this *UserAuthController) PermissionList() {
 			}
 		}
 	}
-	if len(privateView) == 0 {
-		br.Data = publicView
-	} else {
-		br.Data = privateView
-	}
 
+	publicView = append(publicView, privateView...)
+	br.Data = publicView
 	br.Msg = "查询成功"
 	br.Success = true
 	br.Ret = 200