diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js index 6728486a0dd7..db6183103145 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.controller.js @@ -213,15 +213,15 @@ angular.module("umbraco") return f.path.indexOf($scope.startNodeId) !== -1; }); }); - - mediaTypeHelper.getAllowedImagetypes(folder.id) - .then(function (types) { - vm.acceptedMediatypes = types; - }); } else { $scope.path = []; } + mediaTypeHelper.getAllowedImagetypes(folder.id) + .then(function (types) { + vm.acceptedMediatypes = types; + }); + $scope.lockedFolder = (folder.id === -1 && $scope.model.startNodeIsVirtual) || hasFolderAccess(folder) === false; $scope.currentFolder = folder;