mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 05:05:07 -05:00
Fix possible to edit tournament as a non-tournament
This commit is contained in:
parent
882973bbfe
commit
c02cff0cf4
|
|
@ -70,7 +70,9 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
|
|||
|
||||
return {
|
||||
isAddingTournament: Boolean(
|
||||
url.searchParams.has("tournament") || url.searchParams.has("copyEventId"),
|
||||
url.searchParams.has("tournament") ||
|
||||
url.searchParams.has("copyEventId") ||
|
||||
eventToEdit?.tournament,
|
||||
),
|
||||
managedBadges: await BadgeRepository.findManagedByUserId(user.id),
|
||||
recentEventsWithMapPools:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user