summary refs log tree commit diff
path: root/src/util
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/util
parentGuildMemberPatch: remove a useless query (diff)
downloadserver-6a4fd5fbdb4791f37065c96173bdfacd561a825b.tar.xz
add new right for creating registration tokens
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util/Rights.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/util/Rights.ts b/src/util/util/Rights.ts
index 90ebe242..56d0e28d 100644
--- a/src/util/util/Rights.ts
+++ b/src/util/util/Rights.ts
@@ -94,6 +94,7 @@ export class Rights extends BitField {
 		MANAGE_GROUPS: BitFlag(47), // can manage others' groups
 		VIEW_SERVER_STATS: BitFlag(48), // added per @chrischrome's request — can view server stats)
 		RESEND_VERIFICATION_EMAIL: BitFlag(49), // can resend verification emails (/auth/verify/resend)
+		CREATE_REGISTRATION_TOKENS: BitFlag(50), // can create registration tokens (/auth/generate-registration-tokens)
 	};
 
 	any(permission: RightResolvable, checkOperator = true) {