Skip to content

Commit

Permalink
Merge pull request #9015 from owncloud/forbid-virtual-spaces
Browse files Browse the repository at this point in the history
fix: forbid virtual spaces
  • Loading branch information
kulmann authored May 11, 2023
2 parents 327dd53 + c8de047 commit b8349ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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

0 comments on commit b8349ea

Please sign in to comment.