Skip to content

Conversation

@icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Jan 6, 2026

Only moving to another folder needs the delete+create permissions, for moving in the same folder just update is enough.

TODO:

  • Update files webui permissions check

@icewind1991 icewind1991 added the 2. developing Work in progress label Jan 6, 2026
@icewind1991
Copy link
Member Author

/compile

@icewind1991 icewind1991 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 6, 2026
@icewind1991 icewind1991 added this to the Nextcloud 33 milestone Jan 6, 2026
@icewind1991 icewind1991 marked this pull request as ready for review January 6, 2026 16:37
@icewind1991 icewind1991 requested review from a team and skjnldsv as code owners January 6, 2026 16:37
@icewind1991 icewind1991 requested review from Altahrim, ArtificialOwl, leftybournes, provokateurin, susnux and szaimen and removed request for a team January 6, 2026 16:37
Signed-off-by: nextcloud-command <[email protected]>
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@nextcloud-bot nextcloud-bot mentioned this pull request Jan 7, 2026
@icewind1991
Copy link
Member Author

(I'll rebase etc once reviewed)

@nextcloud-bot nextcloud-bot mentioned this pull request Jan 9, 2026
Copy link
Contributor

@mgallien mgallien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested with the desktop client and works fine

if (!($this->info->isDeletable() || ($this->info->getMountPoint() instanceof MoveableMount && $this->info->getInternalPath() === ''))) {
throw new \Sabre\DAV\Exception\Forbidden();
if (!$this->canRename()) {
throw new \Sabre\DAV\Exception\Forbidden('asd');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
throw new \Sabre\DAV\Exception\Forbidden('asd');
throw new \Sabre\DAV\Exception\Forbidden();

Leftover

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants