summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-12-14 22:09:25 -0500
committerPuyodead1 <puyodead@proton.me>2023-12-14 22:09:25 -0500
commit6a4fd5fbdb4791f37065c96173bdfacd561a825b (patch)
tree958c020da5e0ef0376808f8a3d9308b1e07cd3bd /src/api
parentGuildMemberPatch: remove a useless query (diff)
downloadserver-6a4fd5fbdb4791f37065c96173bdfacd561a825b.tar.xz
add new right for creating registration tokens
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/auth/generate-registration-tokens.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/auth/generate-registration-tokens.ts b/src/api/routes/auth/generate-registration-tokens.ts
index 80fdaed1..50c389e0 100644
--- a/src/api/routes/auth/generate-registration-tokens.ts
+++ b/src/api/routes/auth/generate-registration-tokens.ts
@@ -38,7 +38,7 @@ router.get(
 					"The length of each registration token. Defaults to 255.",
 			},
 		},
-		right: "OPERATOR",
+		right: "CREATE_REGISTRATION_TOKENS",
 		responses: { 200: { body: "GenerateRegistrationTokensResponse" } },
 	}),
 	async (req: Request, res: Response) => {