Skip to content

Commit

Permalink
properly delete a user without leaving certificates in the db.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvliet committed Jan 25, 2011
1 parent d7d447c commit fcf5837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/repoman/repoman/controllers/api/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def delete_user(self, user, format='json'):
meta.Session.delete(i.checksum)
meta.Session.delete(i.shared)
meta.Session.delete(i)
proxy = user.certificate
meta.Session.delete(proxy)
meta.Session.delete(user)
meta.Session.commit()
else:
Expand Down

0 comments on commit fcf5837

Please sign in to comment.