Browse Source

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

Roc 2 months ago
parent
commit
74ec5ded53
1 changed files with 6 additions and 0 deletions
  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]