Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

models: Add realm moderator role.

sahil839af64ca388ad8
diff --git a/zerver/models.py b/zerver/models.py
index f86262a4a00..c1cbf8ced87 100644
--- a/zerver/models.py
+++ b/zerver/models.py
@@ -1056,7 +1056,7 @@ class UserProfile(AbstractBaseUser, PermissionsMixin):
# changes to them will require a migration of RealmAuditLog.
ROLE_REALM_OWNER = 100
ROLE_REALM_ADMINISTRATOR = 200
- # ROLE_MODERATOR = 300
+ ROLE_MODERATOR = 300
ROLE_MEMBER = 400
ROLE_GUEST = 600
role: int = models.PositiveSmallIntegerField(default=ROLE_MEMBER, db_index=True)