mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-25 12:35:18 -05:00
Make tournament organizer perm adding an admin only action
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user