Selaa lähdekoodia

redirect for invite casing

Alexander Belanger 4 vuotta sitten
vanhempi
sitoutus
374974b196
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      api/server/router/invite.go

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

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