This commit is contained in:
Daniel 2024-11-22 20:15:47 +08:00
parent 909b36d380
commit acbbd8ca5d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
15 changed files with 59 additions and 38 deletions

View file

@ -238,7 +238,7 @@ func CheckAuth(c *gin.Context) {
return
}
if strings.HasPrefix(c.Request.RequestURI, "/api/sync/performSync") {
if util.ContainerIOS == util.Container || util.ContainerAndroid == util.Container {
if util.ContainerIOS == util.Container || util.ContainerAndroid == util.Container || util.ContainerHarmony == util.Container {
c.Set(RoleContextKey, RoleAdministrator)
c.Next()
return