Skip to content

Instantly share code, notes, and snippets.

@SirKwest
Created Jan 26, 2021
Embed
What would you like to do?
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