summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-08-23 23:11:51 +0300
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-19 20:49:38 +1100
commit3844d8a40bb0e38d57953a2bc91a0cfee5c68637 (patch)
tree2a59829b2abbe8e78245a9c8a779120eec150c89 /src/util
parentfix user profile not displaying correctly (diff)
downloadserver-3844d8a40bb0e38d57953a2bc91a0cfee5c68637.tar.xz
flags related rights and stats api
Diffstat (limited to 'src/util')
-rw-r--r--src/util/config/types/SecurityConfiguration.ts1
-rw-r--r--src/util/util/Rights.ts4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/util/config/types/SecurityConfiguration.ts b/src/util/config/types/SecurityConfiguration.ts
index 22fe74df..ca610216 100644
--- a/src/util/config/types/SecurityConfiguration.ts
+++ b/src/util/config/types/SecurityConfiguration.ts
@@ -13,4 +13,5 @@ export class SecurityConfiguration {
     forwadedFor: string | null = null;
     ipdataApiKey: string | null = "eca677b284b3bac29eb72f5e496aa9047f26543605efe99ff2ce35c9";
 	mfaBackupCodeCount: number = 10;
+	statsWorldReadable: boolean = true;
 }
diff --git a/src/util/util/Rights.ts b/src/util/util/Rights.ts
index 6ba06d0e..8e54a04f 100644
--- a/src/util/util/Rights.ts
+++ b/src/util/util/Rights.ts
@@ -78,6 +78,10 @@ export class Rights extends BitField {
 		SEND_BACKDATED_EVENTS: BitFlag(42), // can send backdated events
 		USE_MASS_INVITES: BitFlag(43), // added per @xnacly's request — can accept mass invites
 		ACCEPT_INVITES: BitFlag(44), // added per @xnacly's request — can accept user-specific invites and DM requests
+		SELF_EDIT_FLAGS: BitFlag(45), // can modify own flags
+		EDIT_FLAGS: BitFlag(46), // can set others' flags
+		MANAGE_GROUPS: BitFlag(47), // can manage others' groups
+		VIEW_SERVER_STATS: BitFlag(48) // added per @chrischrome's request — can view server stats)
 	};
 
 	any(permission: RightResolvable, checkOperator = true) {