Make tournament organizer perm adding an admin only action

This commit is contained in:
Kalle
2025-07-20 15:39:40 +03:00
parent 1d12abc7cc
commit 04f4d3a383
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ export const action = async ({ request }: ActionFunctionArgs) => {
break;
}
case "TOURNAMENT_ORGANIZER": {
requireRole(user, "STAFF");
requireRole(user, "ADMIN");
await AdminRepository.makeTournamentOrganizerByUserId(data.user);

View File

@@ -119,7 +119,7 @@ function AdminActions() {
{isStaff ? <LinkPlayer /> : null}
{isStaff ? <GiveArtist /> : null}
{isStaff ? <GiveVideoAdder /> : null}
{isStaff ? <GiveTournamentOrganizer /> : null}
{isAdmin ? <GiveTournamentOrganizer /> : null}
{isStaff ? <UpdateFriendCode /> : null}
{isStaff ? <MigrateUser /> : null}
{isAdmin ? <ForcePatron /> : null}