Commit 087eac6
committed
Shares: Honor write/delete permissions inside shared folders
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 #1931 parent e0354b1 commit 087eac6
2 files changed
Lines changed: 10 additions & 4 deletions
File tree
- opencloudApp/src/main/java/eu/opencloud/android/presentation/files/filelist
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
997 | | - | |
998 | | - | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | 1004 | | |
1002 | 1005 | | |
1003 | | - | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1004 | 1009 | | |
1005 | 1010 | | |
1006 | 1011 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| |||
0 commit comments