PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | resources/js/hooks/useEmailSettingsManager.ts +33 -3 3.0.4 → 3.0.16 View file →
@@ -17,8 +17,9 @@
17 17 const EMAIL_KEYS: (keyof EmailSettingsValues)[] = [
18 18 "admin_email",
19 19 "from_email",
20 20 "from_name",
21 + "email_always_bcc",
21 22 "email_template_booking",
22 23 "email_template_confirmation",
23 24 "email_template_cancellation",
24 25 "email_template_reminder",
@@ -26,8 +27,11 @@
26 27 "email_template_admin_payment",
27 28 "email_template_admin_cancellation",
28 29 "email_template_trip_consent",
29 30 "email_template_customer_verification",
31 + "email_template_guest_verification",
32 + "email_template_account_email_change",
33 + "email_template_account_email_changed",
30 34 "smtp_enabled",
31 35 "smtp_host",
32 36 "smtp_port",
33 37 "smtp_username",
@@ -50,8 +54,14 @@
50 54 "email_tpl_trip_consent_subject",
51 55 "email_tpl_trip_consent_body",
52 56 "email_tpl_customer_verification_subject",
53 57 "email_tpl_customer_verification_body",
58 + "email_tpl_guest_verification_subject",
59 + "email_tpl_guest_verification_body",
60 + "email_tpl_account_email_change_subject",
61 + "email_tpl_account_email_change_body",
62 + "email_tpl_account_email_changed_subject",
63 + "email_tpl_account_email_changed_body",
54 64 "email_template_booking_completed",
55 65 "email_template_booking_expired_customer",
56 66 "email_template_admin_booking_expired",
57 67 "email_template_scheduled_payment_reminder",
@@ -104,8 +114,11 @@
104 114 "email_template_admin_payment",
105 115 "email_template_admin_cancellation",
106 116 "email_template_trip_consent",
107 117 "email_template_customer_verification",
118 + "email_template_guest_verification",
119 + "email_template_account_email_change",
120 + "email_template_account_email_changed",
108 121 "email_template_booking_completed",
109 122 "email_template_booking_expired_customer",
110 123 "email_template_admin_booking_expired",
111 124 "email_template_scheduled_payment_reminder",
@@ -122,11 +135,12 @@
122 135 "smtp_enabled",
123 136 ]);
124 137
125 138 export const EMAIL_SETTINGS_DEFAULTS: EmailSettingsValues = {
126 - admin_email: "[email protected]",
127 - from_email: "[email protected]",
139 + admin_email: "[email protected]",
140 + from_email: "[email protected]",
128 141 from_name: "Yatra Travel",
142 + email_always_bcc: "",
129 143 email_template_booking: true,
130 144 email_template_confirmation: true,
131 145 email_template_cancellation: true,
132 146 email_template_reminder: true,
@@ -134,8 +148,11 @@
134 148 email_template_admin_payment: true,
135 149 email_template_admin_cancellation: true,
136 150 email_template_trip_consent: true,
137 151 email_template_customer_verification: true,
152 + email_template_guest_verification: true,
153 + email_template_account_email_change: true,
154 + email_template_account_email_changed: true,
138 155 email_template_booking_completed: true,
139 156 email_template_booking_expired_customer: true,
140 157 email_template_admin_booking_expired: true,
141 158 email_template_scheduled_payment_reminder: true,
@@ -172,8 +189,14 @@
172 189 email_tpl_trip_consent_subject: "",
173 190 email_tpl_trip_consent_body: "",
174 191 email_tpl_customer_verification_subject: "",
175 192 email_tpl_customer_verification_body: "",
193 + email_tpl_guest_verification_subject: "",
194 + email_tpl_guest_verification_body: "",
195 + email_tpl_account_email_change_subject: "",
196 + email_tpl_account_email_change_body: "",
197 + email_tpl_account_email_changed_subject: "",
198 + email_tpl_account_email_changed_body: "",
176 199 email_tpl_booking_completed_subject: "",
177 200 email_tpl_booking_completed_body: "",
178 201 email_tpl_booking_expired_customer_subject: "",
179 202 email_tpl_booking_expired_customer_body: "",
@@ -264,9 +287,16 @@
264 287 showToast(message, "error");
265 288 throw error;
266 289 }
267 290 },
268 - enabled: can("manage_yatra"),
291 + // Was `manage_yatra` — that's not a registered Yatra cap, so the
292 + // check returned false for everyone except admins-via-fallback,
293 + // which silently broke the Email page on installs where the
294 + // admin fallback wasn't yet wired (free, or Pro pre-Team). The
295 + // canonical cap for the Email hub is `yatra_manage_emails`,
296 + // registered in the Team module's CapabilityRegistry and held
297 + // by Marketing role + Owner / Manager.
298 + enabled: can("yatra_manage_emails"),
269 299 });
270 300
271 301 const serverSlice = useMemo(
272 302 () => coerceEmailValues(settings as Record<string, unknown> | undefined),