π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Format
Manav Rathi836fc951f464
diff --git a/server/pkg/middleware/auth.go b/server/pkg/middleware/auth.goindex ec029e7629..3113043a58 100644--- a/server/pkg/middleware/auth.go+++ b/server/pkg/middleware/auth.go@@ -95,10 +95,10 @@ func (m *AuthMiddleware) AdminAuthMiddleware() gin.HandlerFunc {// workaround Viper issues in passing env vars for an int slice.admin := viper.GetInt("internal.admin")if len(admins) == 0 && admin != 0 {- if int64(admin) == userID {- c.Next()- return- }+ if int64(admin) == userID {+ c.Next()+ return+ }}// if no admins are set, then check if the user is first user in the systemif len(admins) == 0 && admin == 0 {