-
-
Couldn't load subscription status.
- Fork 4.6k
fix(FilesPicker): Prevent selection of nodes without create permission #55796
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
Conversation
|
I think we discussed this somewhere with Jan, the outcome was that it is even more confusing to not see all your files. We probably need a second filter way for this on the library though... |
Or we instead gray out the files based on that already existing function? Is there a specific use case where we actually want to filter out some nodes? |
9331209 to
37e2ebd
Compare
|
I don't think this will work. We might not have create permission on a specific folder, but still have them on one of its subfolders. Groupfolders with ACLs for example. So we still need to be able to navigate into those folders. Maybe we also need a |
Then you should be able to navigate into those greyed folder but not be able to pick them. |
No, for E2EE it does not make sense as we cannot even load their content. But luckily, they are also not readable, I'll push a better approach in a few minutes. Edit: done |
37e2ebd to
f2ab1c3
Compare
f2ab1c3 to
9216214
Compare
3ffa65c to
35ec297
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Might additionally be good to have some textual support there, like a title on hover & focus which says "No permissions to upload to this folder", for example.
35ec297 to
2f97714
Compare
|
/compile / |
|
/compile rebase / |
And remove the disable callback for the button as it is not needed anymore. This gives a better experience as the nodes do not have a pointer for cursor, and the submit button does not react when clicking on them. Signed-off-by: Louis Chmn <louis@chmn.me>
Signed-off-by: Louis Chmn <louis@chmn.me>
Signed-off-by: Louis Chmn <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
f45ef38 to
58e9be7
Compare
|
/backport cb062d2 to stable32 |
|
/backport cb062d2 to stable31 |
|
/backport cb062d2 to stable30 |
It is misleading to show those nodes in the file picker, as picking them will always result in an error.
Todo:
@nextcloud/dialogto uses the new API from feat(FilePicker): Improve pick and navigation logic to match user expectation nextcloud-libraries/nextcloud-dialogs#2033The new version will also prevent navigation to non-readable folders. This will prevent navigating to E2EE folders.