Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Allow file link access for free users

vishnukvmd09f8c6beb77c
diff --git a/server/pkg/middleware/file_link.go b/server/pkg/middleware/file_link.go
index 44748ddd69..540bdd4f7d 100644
--- a/server/pkg/middleware/file_link.go
+++ b/server/pkg/middleware/file_link.go
@@ -60,13 +60,6 @@ func (m *FileLinkMiddleware) Authenticate(urlSanitizer func(_ *gin.Context) stri
c.AbortWithStatusJSON(http.StatusGone, gin.H{"error": "disabled token"})
return
}
- // validate if user still has active paid subscription
- if err = m.BillingCtrl.HasActiveSelfOrFamilySubscription(fileLinkRow.OwnerID, true); err != nil {
- logrus.WithError(err).Info("failed to verify active paid subscription")
- c.AbortWithStatusJSON(http.StatusGone, gin.H{"error": "no active subscription"})
- return
- }
-
// validate device limit
reached, limitErr := m.isDeviceLimitReached(c, fileLinkRow, clientIP, userAgent)
if limitErr != nil {