File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -379,11 +379,16 @@ protected function getCategoriesTree($filter = null)
379
379
* @param string $filter
380
380
* @return string
381
381
*/
382
- private function getCategoriesTreeCacheId (int $ storeId , string $ filter = '' ) : string
382
+ private function getCategoriesTreeCacheId (int $ storeId , string $ filter = '' ): string
383
383
{
384
+ if ($ this ->session ->getUser () !== null ) {
385
+ return self ::CATEGORY_TREE_ID
386
+ . '_ ' . (string )$ storeId
387
+ . '_ ' . $ this ->session ->getUser ()->getAclRole ()
388
+ . '_ ' . $ filter ;
389
+ }
384
390
return self ::CATEGORY_TREE_ID
385
- . '_ ' . (string ) $ storeId
386
- . '_ ' . $ this ->session ->getUser ()->getAclRole ()
391
+ . '_ ' . (string )$ storeId
387
392
. '_ ' . $ filter ;
388
393
}
389
394
You can’t perform that action at this time.
0 commit comments