mysociety / message-manager

Accepts messages from an external source (e.g., an SMS gateway) and offers them up to FixMyStreet-like applications.
Other
5 stars 2 forks source link

don't allow current user to delete themselves #147

Closed davewhiteland closed 11 years ago

davewhiteland commented 11 years ago

It's easier to prevent this than to worry about the special case of the current (session) user no longer existing... although this is still theoretically possible if an admin deletes a logged-in user, since it's admin-only, probably best to put a check in.