mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
realm: Add maximum file size upload restriction.
This commit adds a restriction to the maximum file size that can be uploaded to a realm based on its plan_type.
This commit is contained in:
committed by
Tim Abbott
parent
808acc9e47
commit
3314c89288
@@ -284,7 +284,12 @@ export function dispatch_normal_event(event) {
|
||||
switch (event.property) {
|
||||
case "default":
|
||||
for (const [key, value] of Object.entries(event.data)) {
|
||||
realm["realm_" + key] = value;
|
||||
if (key === "max_file_upload_size_mib") {
|
||||
realm[key] = value;
|
||||
} else {
|
||||
realm["realm_" + key] = value;
|
||||
}
|
||||
|
||||
if (Object.hasOwn(realm_settings, key)) {
|
||||
settings_org.sync_realm_settings(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user