You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exclude group from sharing after a share was created #17346
Well this is really about what we expect the Exclude groups from sharing to mean.
I would expect that if a user is not able to share anything then old shares should be removed.
First I was thinking just make the current shares invisible. So don't return them from the API. This is possible but does not scale. Since this would mean that each time we interact with the Sharing API we have to check from who the share we receive is (all the way up to the root share). As said this will not properly scale.
So the second option would be to have a hook somewhere. That if a group is added we check for all the users in that group if they now can't share anymore and if that is the case we remove all their shares.
I think the second option is cleanest. But it does risk removing all of a users shares if you accidentially enter the wrong group name...
Activity
rullzer commentedon Aug 20, 2015
Well this is really about what we expect the
Exclude groups from sharingto mean.I would expect that if a user is not able to share anything then old shares should be removed.
rullzer commentedon Nov 18, 2015
First I was thinking just make the current shares invisible. So don't return them from the API. This is possible but does not scale. Since this would mean that each time we interact with the Sharing API we have to check from who the share we receive is (all the way up to the root share). As said this will not properly scale.
So the second option would be to have a hook somewhere. That if a group is added we check for all the users in that group if they now can't share anymore and if that is the case we remove all their shares.
I think the second option is cleanest. But it does risk removing all of a users shares if you accidentially enter the wrong group name...
PVince81 commentedon Nov 18, 2015
I don't think this has high priority though. Most important is that nothing breaks when this situation exists.
PVince81 commentedon Sep 23, 2016
not a bug then, by design. closing
lock commentedon Aug 3, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.