tekuma / curator-portal

Interface for the Curation database
0 stars 0 forks source link

BUG: When a project with collaborators is deleted, it is only deleted in the profile of the collaborator when initiated the call (while it remains in all other profiles) #83

Open xstephen95x opened 7 years ago

xstephen95x commented 7 years ago

UG: When a project with collaborators is deleted, it is only deleted in the profile of the collaborator when initiated the call (while it remains in all other profiles)

xstephen95x commented 7 years ago

Target: fix PostAuth.deleteCurrentProject

Change method to remove all collaborators as well

xstephen95x commented 7 years ago

b8f84bd7f115a68dbc88ff1e0bbb1141f0d013de

updated PostAuth.deleteCurrentProject()

xstephen95x commented 7 years ago

@anyati Verify that the update has fixed the bug. If so, comment and close.

xstephen95x commented 7 years ago

secondary bugfix: was assuming the acting user was the project owner, but other collaborators can also delete a project. Code changed to delete the owner explicitly, not just the acting user