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:
@@ -40,6 +40,7 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
|
|||||||
"logo_login",
|
"logo_login",
|
||||||
"logo_register",
|
"logo_register",
|
||||||
"main_metal",
|
"main_metal",
|
||||||
|
"main_product",
|
||||||
"main_wallet_products",
|
"main_wallet_products",
|
||||||
"metal_type",
|
"metal_type",
|
||||||
"montify_name",
|
"montify_name",
|
||||||
@@ -66,6 +67,8 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
|
|||||||
"price_channel_bale_to",
|
"price_channel_bale_to",
|
||||||
"price_channel_rubika_to",
|
"price_channel_rubika_to",
|
||||||
"price_channel_telegram_to",
|
"price_channel_telegram_to",
|
||||||
|
"price_provider",
|
||||||
|
"profit_gold_api_enabled",
|
||||||
"referral_bonus_amount",
|
"referral_bonus_amount",
|
||||||
"rubika_bot_token",
|
"rubika_bot_token",
|
||||||
"send_to_pargar",
|
"send_to_pargar",
|
||||||
@@ -79,9 +82,12 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
|
|||||||
"tahesab_port",
|
"tahesab_port",
|
||||||
"tahesab_token",
|
"tahesab_token",
|
||||||
"telegram_bot_token",
|
"telegram_bot_token",
|
||||||
|
"title_fav",
|
||||||
|
"title_pwa",
|
||||||
"unit",
|
"unit",
|
||||||
"wallet_payment_provider",
|
"wallet_payment_provider",
|
||||||
"wss_enabled",
|
"wss_enabled",
|
||||||
|
"zaarbox_api_url",
|
||||||
"zarin_api",
|
"zarin_api",
|
||||||
"zarin_gorohe_kar",
|
"zarin_gorohe_kar",
|
||||||
"zarin_name_g",
|
"zarin_name_g",
|
||||||
@@ -108,14 +114,18 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
|
|||||||
"deposit_method_shetab",
|
"deposit_method_shetab",
|
||||||
"deposit_sheba",
|
"deposit_sheba",
|
||||||
"deposit_sms_support_number",
|
"deposit_sms_support_number",
|
||||||
|
"deposit_support_message_text",
|
||||||
|
"do_send_liman",
|
||||||
"down_price",
|
"down_price",
|
||||||
"endDay",
|
"endDay",
|
||||||
|
"fee",
|
||||||
"fee_conditional_order",
|
"fee_conditional_order",
|
||||||
"fee_free",
|
"fee_free",
|
||||||
"fee_service_charge_percentage",
|
"fee_service_charge_percentage",
|
||||||
"gift_for_referral",
|
"gift_for_referral",
|
||||||
"gift_for_referrer",
|
"gift_for_referrer",
|
||||||
"has_chat",
|
"has_chat",
|
||||||
|
"invite_link_text",
|
||||||
"jibit_verification",
|
"jibit_verification",
|
||||||
"main_product_price",
|
"main_product_price",
|
||||||
"min_deposit",
|
"min_deposit",
|
||||||
@@ -143,12 +153,14 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
|
|||||||
"price_channel_footer_id",
|
"price_channel_footer_id",
|
||||||
"price_channel_footer_link",
|
"price_channel_footer_link",
|
||||||
"price_channel_footer_phone",
|
"price_channel_footer_phone",
|
||||||
|
"price_channel_message_text",
|
||||||
"price_channel_messengers",
|
"price_channel_messengers",
|
||||||
"price_channel_min_seconds",
|
"price_channel_min_seconds",
|
||||||
"price_extreme_date",
|
"price_extreme_date",
|
||||||
"products_site_link_enabled",
|
"products_site_link_enabled",
|
||||||
"products_site_link_text",
|
"products_site_link_text",
|
||||||
"products_site_link_url",
|
"products_site_link_url",
|
||||||
|
"referral_bonus_count",
|
||||||
"referral_gift_buy_from_montzar",
|
"referral_gift_buy_from_montzar",
|
||||||
"referral_gift_on_first_order",
|
"referral_gift_on_first_order",
|
||||||
"referral_id",
|
"referral_id",
|
||||||
@@ -185,9 +197,13 @@ export const SUPERADMIN_EDITABLE_SETTING_KEYS = new Set<string>([
|
|||||||
"support_messenger",
|
"support_messenger",
|
||||||
"support_messenger_id",
|
"support_messenger_id",
|
||||||
"support_messenger_text",
|
"support_messenger_text",
|
||||||
|
"support_messengers",
|
||||||
|
"text_about",
|
||||||
|
"text_rule",
|
||||||
"tracking_systems",
|
"tracking_systems",
|
||||||
"tracking_systems_enabled",
|
"tracking_systems_enabled",
|
||||||
"up_price",
|
"up_price",
|
||||||
|
"zaarbox_price_key",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export function isSuperAdminSystemSettingKey(key?: string | null): boolean {
|
export function isSuperAdminSystemSettingKey(key?: string | null): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user