Skip to content

Commit

Permalink
Don't show "edit" button for folders that can't be MOVE'd.
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-matthewb committed Nov 8, 2024
1 parent 14d5b82 commit 656441f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/org/labkey/core/webdav/DavController.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 656441f

Please sign in to comment.