Skip to content

fix: don't offer creating or copying into a view-only space root - #4360

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/space-root-can-create
Nov 9, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/space-root-can-create

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

At the root of a space you can only view, "Copy here" / "Move here" and "New Folder" were offered and then failed. They're now disabled or hidden there, same as in the space's subfolders.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: canCreate of a space with and without the upload permission, location picker button at a view-only space root
  • test case 2: browser: reproduced on main, then on the fix: Copy to / Move to and the right-click menu at view-only, editor and manager space roots and subfolders, personal space, share roots (can edit / can view), public edit link, embed location picker, Pixel 7

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear force-pushed the fix/space-root-can-create branch from 857c0ff to f82a4f1 Compare November 9, 2026 11:22
@AlexAndBear
AlexAndBear merged commit dee7187 into main Nov 9, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/space-root-can-create branch November 9, 2026 16:11
@openclouders openclouders mentioned this pull request Nov 10, 2026
1 task
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.

"Copy here" and "New Folder" are offered at the root of a view-only space and fail

2 participants