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
Allow to specify allowed groups to share instead of excluded groups #34115
Allow to specify allowed groups to share instead of excluded groups #34115
Conversation
58216de
to
df0715c
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.
Code looks good, I'm just unsure if the UI is good enough.
@jancborchardt This is the new UX
- Exclude groups from sharing / allow only groups to share
[ list-of-groups ]
- Allow only instead of exclude
I wondering if the title of the group selector should be updated when the checkbox is updated
No need to update the translation files, this is done automatically by scripts |
df0715c
to
6a59086
Compare
Just added testing 🙂 |
0ff5e55
to
2b7bff6
Compare
Hm good question. Sounds like it should be 3 radio options and an input:
And then an input field below the option which is chosen. @nimishavijay? |
Agreed with the UX, suggestion on the wording:
And when an option is selected the input field appears below that option like @jancborchardt mentioned |
Sounds good @nimishavijay! Would just switch around option 2 and 3 in the order, so it's sorted by permissiveness. |
0cea484
to
314a881
Compare
7776d17
to
c533a61
Compare
c533a61
to
658e3f1
Compare
658e3f1
to
8ca2561
Compare
8ca2561
to
51fe442
Compare
Hello @skjnldsv I rebased and fixed the conflicts. |
e65b5b8
to
b774402
Compare
b774402
to
1a7ca3a
Compare
1a7ca3a
to
68b9294
Compare
Hello @skjnldsv I finally managed to reproduce the issue in the No DB unit tests (PHP 8.1) locally and fixed it. |
68b9294
to
b384c49
Compare
Seems like all tests passed (except Cypress that fails on forks), could you merge this then, so that it is included in the next beta? 🙂 |
bf34abe
to
d5527e9
Compare
Aaaand we have conflicts again 🙈 EDIT: rebased |
… of excluded groups Relates to #3387 Signed-off-by: Corentin Damman <c.damman@intopix.com>
d5527e9
to
0fa9f30
Compare
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
In my use case, I use Nextcloud to share files with a lot of people that are members of separate groups.
I do not want those people to be able to share files between them, nor to share files with me.
However, I want to allow sharing from my team to those groups.
The feature I need is then to be able to specify allowed groups to share, instead of excluded groups.
Hence, I can create a group with my team, allow it to share, and do not allow this feature to any other groups (without having to list all of them).
Suggested UI:
Relates to #3387