Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kbecker42 committed Aug 15, 2022
1 parent c7ae370 commit 1b010cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pybossa/view/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -3215,10 +3215,11 @@ def add_coowner(short_name, user_name=None):
if user.id in project.owners_ids:
flash(gettext('User is already an owner'), 'warning')
else:
auditlogger.log_event(project, current_user, 'update',
'project.coowners', project.owners_ids, project.owners_ids + [user.id])
old_list = project.owners_ids.copy()
project.owners_ids.append(user.id)
project_repo.update(project)
auditlogger.log_event(project, current_user, 'update',
'project.coowners', old_list, project.owners_ids)
flash(gettext('User was added to list of owners'), 'success')
return redirect_content_type(url_for(".coowners", short_name=short_name))
return abort(404)
Expand Down

0 comments on commit 1b010cb

Please sign in to comment.