-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete groups based on owners not creator
When deleting a user account we currently delete any groups that the user created and that don't contain any annotations by other users. This made sense when the creator was the only person who could edit the group (changing its name, description and type) or moderate annotations in the group: groups with no creator were kind of broken and may as well be deleted (as long as they didn't contain any annotations). But we've now added the concept of group membership roles and in particular a group can have multiple "owners" who all have full permissions to edit and moderate the group. Even if the group's creator no longer exists, the group may still have other owners who have full control of the group. So instead of deleting groups that the user created, change `UserDeleteService` to delete groups that the user is the only owner of (and that don't contain any annotations by other users).
- Loading branch information
Showing
4 changed files
with
86 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters