Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: forbid virtual spaces #9015

Merged
merged 1 commit into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/bugfix-forbid-virtual-shares
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Prevent "virtual" spaces from being displayed in the UI

While ownCloud Web is capable of displaying any type of spaces we found out that it is not valid to display so called "virtual" spaces. In such a case users now get redirected to their default location (personal space for users, project spaces overview for guests).

https://github.com/owncloud/web/pull/9015
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const useDriveResolver = (options: DriveResolverOptions = {}): DriveResol
watch(
[options.driveAliasAndItem, areSpacesLoading],
([driveAliasAndItem]) => {
if (!driveAliasAndItem) {
if (!driveAliasAndItem || driveAliasAndItem.startsWith('virtual/')) {
space.value = null
item.value = null
return
Expand Down