fix(settings): sync SuperAdmin UI keys with full can_edit=0 catalog

Include price_provider and other deploy system keys; keep can_edit=1
keys out of the SuperAdmin settings page.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 21:47:43 +03:30
co-authored by Cursor
parent c4fe4909df
commit 5f487abea9
+16
View File
@@ -40,6 +40,7 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"logo_login",
"logo_register",
"main_metal",
"main_product",
"main_wallet_products",
"metal_type",
"montify_name",
@@ -66,6 +67,8 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"price_channel_bale_to",
"price_channel_rubika_to",
"price_channel_telegram_to",
"price_provider",
"profit_gold_api_enabled",
"referral_bonus_amount",
"rubika_bot_token",
"send_to_pargar",
@@ -79,9 +82,12 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"tahesab_port",
"tahesab_token",
"telegram_bot_token",
"title_fav",
"title_pwa",
"unit",
"wallet_payment_provider",
"wss_enabled",
"zaarbox_api_url",
"zarin_api",
"zarin_gorohe_kar",
"zarin_name_g",
@@ -108,14 +114,18 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"deposit_method_shetab",
"deposit_sheba",
"deposit_sms_support_number",
"deposit_support_message_text",
"do_send_liman",
"down_price",
"endDay",
"fee",
"fee_conditional_order",
"fee_free",
"fee_service_charge_percentage",
"gift_for_referral",
"gift_for_referrer",
"has_chat",
"invite_link_text",
"jibit_verification",
"main_product_price",
"min_deposit",
@@ -143,12 +153,14 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"price_channel_footer_id",
"price_channel_footer_link",
"price_channel_footer_phone",
"price_channel_message_text",
"price_channel_messengers",
"price_channel_min_seconds",
"price_extreme_date",
"products_site_link_enabled",
"products_site_link_text",
"products_site_link_url",
"referral_bonus_count",
"referral_gift_buy_from_montzar",
"referral_gift_on_first_order",
"referral_id",
@@ -185,9 +197,13 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
"support_messenger",
"support_messenger_id",
"support_messenger_text",
"support_messengers",
"text_about",
"text_rule",
"tracking_systems",
"tracking_systems_enabled",
"up_price",
"zaarbox_price_key",
]);
export function isSuperAdminSystemSettingKey(key?: string | null): boolean {