-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Support CRUD share permissions #30862
Conversation
3c53ca5
to
0e98ed6
Compare
4ff7089
to
44cc6ea
Compare
792e3ac
to
d834616
Compare
018ac1b
to
3f8e9ac
Compare
457330d
to
d486c82
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.
Really nice flow! Love it!
My only tiny bit of feedback would be that the wording "Bundle permissions" was a bit confusing to me, at first glance I thought it was an action that was to be applied.
I think it would be okay if there is no wording there, just the back icon, what do you think?
It was the best that I could think of, and I wanted some wording because the user can have the "Custom permissions" view opened by default. Having no wording then might be non-intuitive, no? Maybe "Bundled permissions"? But I have more trust in your opinion than mine on that matter ;) |
@artonge as per the comment at #30227 (comment), it would be nice if the "Custom permissions" is actually a submenu like in Deck which moves all the rest away, not just replaces some parts (because that way it’s a bit confusing). |
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.
👍 code looks fine
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 (not tested)
As the user can have the "Custom permissions" view opened by default, wouldn't it be weird to hide all other fields? |
Hmm, good point. In that case having some wording there makes sense. I think "Bundled permissions" sounds nicer :)
|
d486c82
to
ee6857e
Compare
Labels updated to match Nimisha's suggestions. @jancborchardt an opinion on my answer to your feedback? |
Signed-off-by: Louis Chemineau <[email protected]>
ee6857e
to
da435b1
Compare
@artonge in which case would the custom permissions be opened by default? Was that specifically requested? (If not, I'd say yep let's remove it.) Cause since they are custom they should stay behind a submenu like that, and behave as the submenu does in Deck. |
@jancborchardt In the case where custom permissions are selected. The user would be prompted with the custom permissions panel instead of the bundled permissions one, which would be empty. Not requested, but it felt better to me. Also, keeping the other options visible prevent the resizing of the whole menu which feels clunky. |
@artonge ok, then it’s fine, especially as ideally it’s a stop-gap solution anyway before the new sharing flow comes in :) 👍 |
CI failure unrelated |
Thanks for this PR! Does anyone know if it is going to be backported to 23? |
We don't plan to backport it since we usually don't backport features but just bug fixes and security fixes but version 24 isn't that far away anymore :) |
Support fine-grained permissions for external shares of folders.
Design change
Note the new "Custom permissions" button at the bottom.
When clicking on it, a new menu replaces the "Bundle permissions" view.
Here, "Create" is checked because "File drop" was selected.
When navigating back to the initial menu, no "Bundled permissions" is selected because none reflect the set of checked permissions.
Underneath "Custom permissions", there is a summary of the selected permissions. This summary is currently also shown when a "Bundled permissions" is selected.
When a set of custom permissions is selected, the "Custom permissions" view is opened by default.
-
UPDATE
andDELETE
needREAD
to be checked.- One of
READ
orCREATE
must be checked at all times.If the permissions set somehow end up in an invalid state, some red outline are displayed.
Technical changes
SharePermissionsEditor
Vuejs element has been created to remove the logic from the giganticSharingEntryLink
.ShareAPIController
. See above tab for the allowed permissions set logic.Interogation/Additional work
Meta
Fix #30227
Fix https://github.com/nextcloud-gmbh/server/issues/118