فهرست منبع

Merge branch 'bug/7110' into debug

Roc 2 ماه پیش
والد
کامیت
1dd228457f
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
 					continue
 				}
 				}
 
 
+				// 如果是超管,那么有权限
+				if utils.IsAdminRole(this.SysUser.RoleTypeCode) {
+					list[i].HasAuth = true
+					continue
+				}
+
 				// 查找授权
 				// 查找授权
 				var hasAuth bool
 				var hasAuth bool
 				grantUserMap, ok := grantMap[item.Id]
 				grantUserMap, ok := grantMap[item.Id]