From 453b76be0408d97888c75ecf49ef8340366ce48a Mon Sep 17 00:00:00 2001 From: zkldi Date: Thu, 10 Jun 2021 19:17:32 +0100 Subject: [PATCH] degranularise permissions --- common/js/types.d.ts | 2 +- common/src/types.ts | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 5bb4465e1..d2c1572a8 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -1115,7 +1115,7 @@ export declare type RedisIPCData = { /** * All the permissions a token may have. */ -export declare type APIPermissions = "create:goal" | "manage:goal" | "submit:ir-beatoraja" | "retrieve:ir-beatoraja" | "submit:ir-usc" | "retrieve:ir-usc" | "submit:ir-fervidex" | "submit:ir-barbatos" | "submit:ir-chunitachi"; +export declare type APIPermissions = "create:goal" | "manage:goal" | "submit:score"; /** * Information about the API Token used to make this request. */ diff --git a/common/src/types.ts b/common/src/types.ts index e174776b9..ba8c3a24d 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -1367,16 +1367,7 @@ export type RedisIPCData = { /** * All the permissions a token may have. */ -export type APIPermissions = - | "create:goal" - | "manage:goal" - | "submit:ir-beatoraja" - | "retrieve:ir-beatoraja" - | "submit:ir-usc" - | "retrieve:ir-usc" - | "submit:ir-fervidex" - | "submit:ir-barbatos" - | "submit:ir-chunitachi"; +export type APIPermissions = "create:goal" | "manage:goal" | "submit:score"; /** * Information about the API Token used to make this request.