Skip to content
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

Improve saving applicable users in ext storage #36087

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

PVince81
Copy link
Member

Added a checkbox to prevent saving "All users" by mistake and giving access to everyone when not wanted.

This was reported many times by surprised admins.

Sorry for the jQuery, this was not the right time to port the whole thing to Vue as it would blow up the required efforts.

Summary

This only touches the UI to add an additional safeguard to prevent saving the configuration when nothing was selected in the multiselect dropdown. In case "all users" is the intentional choice, the admin needs to tick a checkbox.
Otherwise it will not save.

Before

image

After

image

image

image

Checklist

@PVince81
Copy link
Member Author

note: I chose this kind of interaction mostly for saving time

there wasn't a way for select2 to have a special entry to say "All users" and I didn't want to dig there further or hack around because we want to stop using select2 eventually

@PVince81
Copy link
Member Author

/backport to stable25

Added a checkbox to prevent saving "All users" by mistake and giving
access to everyone when not wanted.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@PVince81 PVince81 force-pushed the enh/noid/improve-applicable-ext-storage branch from 5924293 to 4f35cd5 Compare January 12, 2023 09:14
@PVince81 PVince81 merged commit bfcb269 into master Jan 16, 2023
@PVince81 PVince81 deleted the enh/noid/improve-applicable-ext-storage branch January 16, 2023 14:08
@backportbot-nextcloud
Copy link

The backport to stable25 failed. Please do this backport manually.

@PVince81
Copy link
Member Author

stable25: #36174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants