Skip to content

Conversation

@theoholl
Copy link
Contributor

@theoholl theoholl commented Jan 4, 2026

Related to: #3534

Summary

On main (and maybe other branches/versions), the undelete action is broken. The web endpoint returns a 403 Permission denied error.

This is because the PermissionService::getBoard() method is called without the allowDeleted parameter (it defaults to false), and, thus, throws a DoesNotExistException error. This error is then caught in PermissionService::getPermissions(), setting both $owner = false and $acls = []. This results in all permissions being false.

This pull request adds an optional allowDeleted parameter to relevant functions.

Screencast

Screencast.Fix.mp4

@theoholl theoholl changed the title When undeleting a board (and force-deleting), pass the allowDeleted parameter through to BoardMapper::find() to find the relevant board. [main] Fix: Board cannot be undeleted Jan 4, 2026
@grnd-alt
Copy link
Member

grnd-alt commented Jan 5, 2026

thanks for your contribution, the code changes look fine, and work as expected 🔥
The test runs seem to be unrelated!

… parameter through to BoardMapper::find() to find the relevant board.

Signed-off-by: Theo <36564257+theoholl@users.noreply.github.com>
@luka-nextcloud luka-nextcloud merged commit af36557 into nextcloud:main Jan 7, 2026
24 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Boards cannot be undeleted

3 participants