Browse Source

redirect for invite casing

Alexander Belanger 5 năm trước cách đây
mục cha
commit
374974b196
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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,
 		},
 		},
 	)
 	)