realm_plan_type: Restrict uploading organization logos by plan type.

Using the page_param variable "plan_includes_wide_organization_logo"
disallow users in a realm with a "LIMITED" plan type from uploading
their own wide organization logos and instead suggest that they
upgrade their plan using the page_param variable
"upgrade_text_for_wide_organization_logo" for the suggestion message.

Backend validation for this feature already exists.
This commit is contained in:
Hemanth V. Alluri
2019-06-12 17:52:37 +05:30
committed by Tim Abbott
parent 5a1043237c
commit 52a5474000
4 changed files with 29 additions and 2 deletions

View File

@@ -68,6 +68,9 @@ exports.build_page = function () {
realm_digest_emails_enabled: page_params.realm_digest_emails_enabled,
realm_digest_weekday: page_params.realm_digest_weekday,
development: page_params.development_environment,
plan_includes_wide_organization_logo: page_params.plan_includes_wide_organization_logo,
upgrade_text_for_wide_organization_logo:
page_params.upgrade_text_for_wide_organization_logo,
};
options.admin_settings_label = admin_settings_label;