mysociety / alaveteli

Provide a Freedom of Information request system for your jurisdiction
https://alaveteli.org
Other
387 stars 195 forks source link

Add button to close user account #4910

Closed garethrees closed 1 year ago

garethrees commented 5 years ago

We now have User#closed_at that prevents users signing in.

We should have a button that allows admins to permanently close a user account.

Required by https://github.com/mysociety/alaveteli/issues/3148.

RichardTaylor commented 5 years ago

It should be made clear what this "closed" status means. (Prevention of login, and alert mails, though not a prevention of transactional emails / notifications relating to a users' own requests?)

Perhaps notifications relating to a users' own requests should also be prevented?

A user who can't login to classify a response shouldn't be asked to do so. (Comment arises from support mail on WhatDoTheyKnow from a user in this position)

mdeuk commented 5 years ago

A user who can't login to classify a response shouldn't be asked to do so. (Comment arises from support mail on WhatDoTheyKnow from a user in this position)

I've raised #5090 for this as we've had another WDTK user complain about being asked to do just that this weekend.

garethrees commented 2 years ago

It should be made clear what this "closed" status means.

Yes. We already have a "Danger Zone" on a admin user edit page, so we can make it more like the GitHub approach:

Screenshot 2022-05-18 at 14 48 33

We'll want to be able to unfold details for each dangerous action:

Screenshot 2022-05-18 at 14 51 16 Screenshot 2022-05-18 at 14 51 22
RichardTaylor commented 2 years ago

I think this was done by https://github.com/mysociety/alaveteli/pull/4869

garethrees commented 2 years ago

I think this was done by https://github.com/mysociety/alaveteli/pull/4869

That was Close and Anonymise. This issue is just for a "Close" button (closing does different things to adding ban_text).

garethrees commented 1 year ago

Closing in favour of https://github.com/mysociety/alaveteli/issues/7646.