-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Apply group limit on remove from group #47180
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
… from a group Signed-off-by: Louis Chemineau <[email protected]>
c57bb08 to
f217c6e
Compare
|
/backport to stable29 |
|
/backport to stable28 |
Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
2744f31 to
244491a
Compare
Signed-off-by: Côme Chilliet <[email protected]>
|
/backport to stable26 |
|
Tbh this seems not very thought through, it makes the behavior of existing shares on settings and group membership changes super inconsistent. While now existing shares are removed when manipulating the groups of a user, they aren't removed when enabling the "only share between users of group" setting. Neither are they removed when disabling the whole share API, nor when changing the "limit/exclude sharing to/from groups" settings. I assume the behavior for re-shared shares would also have to be considered. I don't think a simple action like toggling group membership (or toggling a checkbox in settings) should do such destructive things as deleting shares, can we maybe just remove this behavior again? @come-nc ping just in case you don't receive notifications for merged PRs. |
I think it’s for this reason that changing settings is not directly deleting shares. But it would be a nice feature to have a button to apply current settings to existing shares indeed. But this PR is not when changing settings but when changing groups. |
Summary
When removing a user from a group, remove shares which would not be creatable anymore according to group limit on sharing.
Checklist