We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e6909 commit 6efd6e8Copy full SHA for 6efd6e8
app/Listeners/CheckoutableListener.php
@@ -96,6 +96,9 @@ public function onCheckedOut($event)
96
try {
97
if ($this->shouldSendWebhookNotification()) {
98
if ($this->newMicrosoftTeamsWebhookEnabled()) {
99
+ if(!Str::contains(Setting::getSettings()->webhook_endpoint, 'workflows')){
100
+ return redirect()->back()->with('warning',trans('admin/settings/message.webhook.webhook_fail'));
101
+ }
102
$message = $this->getCheckoutNotification($event)->toMicrosoftTeams();
103
$notification = new TeamsNotification(Setting::getSettings()->webhook_endpoint);
104
$notification->success()->sendMessage($message[0], $message[1]); // Send the message to Microsoft Teams
0 commit comments