Browse Source

Merge branch 'bug/7110' into debug

Roc 2 months ago
parent
commit
1dd228457f
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]