From 5bb61d138e41546e30feb1f785adae3c2a88aee4 Mon Sep 17 00:00:00 2001 From: Marta Date: Sat, 28 Mar 2020 20:04:31 +0100 Subject: [PATCH] #7672 checking allowed image types on each folder switch --- .../mediapicker/mediapicker.controller.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 b29c00d0e7dc..bf2822184b36 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 @@ -223,15 +223,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;