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)
379379 * @param string $filter
380380 * @return string
381381 */
382- private function getCategoriesTreeCacheId (int $ storeId , string $ filter = '' ) : string
382+ private function getCategoriesTreeCacheId (int $ storeId , string $ filter = '' ): string
383383 {
384+ if ($ this ->session ->getUser () !== null ) {
385+ return self ::CATEGORY_TREE_ID
386+ . '_ ' . (string )$ storeId
387+ . '_ ' . $ this ->session ->getUser ()->getAclRole ()
388+ . '_ ' . $ filter ;
389+ }
384390 return self ::CATEGORY_TREE_ID
385- . '_ ' . (string ) $ storeId
386- . '_ ' . $ this ->session ->getUser ()->getAclRole ()
391+ . '_ ' . (string )$ storeId
387392 . '_ ' . $ filter ;
388393 }
389394
You can’t perform that action at this time.
0 commit comments