Skip to content

fix: listing versions for share receivers#2667

Draft
JammingBen wants to merge 1 commit into
mainfrom
fix/shares-with-version-history
Draft

fix: listing versions for share receivers#2667
JammingBen wants to merge 1 commit into
mainfrom
fix/shares-with-version-history

Conversation

@JammingBen

Copy link
Copy Markdown
Member

Fixes an issue where file versions were missing for a share receiver despite the permissions of the share allowing the listing of versions.

The fix moves the canListVersions method from the SpaceResource to the Resource interface since it should be called on a resource. On a space, it will always return false, since spaces don't have versions. This fixes some inconsistencies we had before (this method should represent the permissions on the actual space, not its resources).

Fixes an issue where file versions were missing for a share receiver
despite the permissions of the share allowing the listing of versions.

The fix moves the `canListVersions` method from the `SpaceResource` to
the `Resource` interface since it should be called on a resource.
On a space, it will always return `false`, since spaces don't have
versions. This fixes some inconsistencies we had before (this method
should represent the permissions on the actual space, not its
resources).
@JammingBen JammingBen self-assigned this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant