From 656441f895c5be764e864bec318cfdb3073ef16c Mon Sep 17 00:00:00 2001 From: labkey-matthewb Date: Fri, 8 Nov 2024 08:33:24 -0800 Subject: [PATCH] Don't show "edit" button for folders that can't be MOVE'd. --- core/src/org/labkey/core/webdav/DavController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/org/labkey/core/webdav/DavController.java b/core/src/org/labkey/core/webdav/DavController.java index 893388b138d..653881817c9 100644 --- a/core/src/org/labkey/core/webdav/DavController.java +++ b/core/src/org/labkey/core/webdav/DavController.java @@ -5372,7 +5372,7 @@ private StringBuilder determineMethodsAllowed(WebdavResource resource) methodsAllowed.append(", GET, HEAD, COPY"); if (delete) methodsAllowed.append(", DELETE"); - if (delete && read) + if (delete && read && resource.canRename(user,false)) methodsAllowed.append(", MOVE"); if (_locking) methodsAllowed.append(", LOCK, UNLOCK");