浏览代码

fix:研报中心,admin角色支持撤销研报

Roc 4 月之前
父节点
当前提交
74ec5ded53
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      controllers/report_v2.go

+ 6 - 0
controllers/report_v2.go

@@ -282,6 +282,12 @@ func (this *ReportController) ListReport() {
 					continue
 				}
 
+				// 如果是超管,那么有权限
+				if utils.IsAdminRole(this.SysUser.RoleTypeCode) {
+					list[i].HasAuth = true
+					continue
+				}
+
 				// 查找授权
 				var hasAuth bool
 				grantUserMap, ok := grantMap[item.Id]