Skip to content

Instantly share code, notes, and snippets.

@SirKwest
Created January 26, 2021 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirKwest/de635b828d0f7f083c18c0aad19afbc1 to your computer and use it in GitHub Desktop.
Save SirKwest/de635b828d0f7f083c18c0aad19afbc1 to your computer and use it in GitHub Desktop.
diff --git a/app/addons/call_requests/Tygh/Addons/CallRequests/Notifications/DataProviders/RequestCreatedDataProvider.php b/app/addons/call_requests/Tygh/Addons/CallRequests/Notifications/DataProviders/RequestCreatedDataProvider.php
index a2734f9964..1e7c6dac29 100644
--- a/app/addons/call_requests/Tygh/Addons/CallRequests/Notifications/DataProviders/RequestCreatedDataProvider.php
+++ b/app/addons/call_requests/Tygh/Addons/CallRequests/Notifications/DataProviders/RequestCreatedDataProvider.php
@@ -48,7 +48,7 @@ class RequestCreatedDataProvider extends BaseDataProvider
{
$area = SiteArea::ADMIN_PANEL;
- if (!empty($this->call_request['company_id'])) {
+ if (!empty($this->call_request['company_id']) && fn_allowed_for('MULTIVENDOR')) {
$area = SiteArea::VENDOR_PANEL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment