Skip to content

Shares: Honor write/delete permissions inside shared folders#194

Open
paolostivanin wants to merge 1 commit into
opencloud-eu:mainfrom
paolostivanin:up-main
Open

Shares: Honor write/delete permissions inside shared folders#194
paolostivanin wants to merge 1 commit into
opencloud-eu:mainfrom
paolostivanin:up-main

Conversation

@paolostivanin

Copy link
Copy Markdown

The "Shares" bottom-bar tab navigates with FileListOption.SHARED_BY_LINK, which treated every screen under it as a flat list. As a result the FAB and the Remove/Rename/Move menu items were hidden even when standing inside a folder shared with full Create/Change/Delete permissions.

Restrict the flat-list assumption to the root: show the FAB inside SHARED_BY_LINK sub-folders when the folder grants add-file/subdirectory permission, and let onlySharedByLinkFiles flag only at the root so the file's own permissions gate Remove/Rename/Move.

Fixes #193

The "Shares" bottom-bar tab navigates with FileListOption.SHARED_BY_LINK,
which treated every screen under it as a flat list. As a result the FAB
and the Remove/Rename/Move menu items were hidden even when standing
inside a folder shared with full Create/Change/Delete permissions.

Restrict the flat-list assumption to the root: show the FAB inside
SHARED_BY_LINK sub-folders when the folder grants add-file/subdirectory
permission, and let onlySharedByLinkFiles flag only at the root so the
file's own permissions gate Remove/Rename/Move.

Fixes opencloud-eu#193
@paolostivanin

Copy link
Copy Markdown
Author

Forgot to mention: tested on latest master. Been using this for a few days with 3 users and it works fine.

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.

User shares are effectively read-only (no upload/delete actions) despite full permissions

2 participants