Sfoglia il codice sorgente

redirect for invite casing

Alexander Belanger 4 anni fa
parent
commit
374974b196
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      api/server/router/invite.go

+ 4 - 1
api/server/router/invite.go

@@ -116,7 +116,10 @@ func getInviteRoutes(
 				Parent:       basePath,
 				RelativePath: "/invites/{token}",
 			},
-			Scopes: []types.PermissionScope{},
+			Scopes: []types.PermissionScope{
+				types.UserScope,
+			},
+			ShouldRedirect: true,
 		},
 	)