Created
January 26, 2021 13:58
-
-
Save SirKwest/de635b828d0f7f083c18c0aad19afbc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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