docbrown/app/views/api
Fernando Valverde c6c39813a1
New suspend user API endpoint (#18043)
* New suspend user API endpoint

* Restrict admin access only to suspend action

* Add suspended? check on new endpoint spec

* Replace POST with PUT action

* Replace redundant response payload with empty 200 response

* Rely on user_policy instead of before_action method

* Use alias with matching method name instead of unpublish

* Use already existing toggle_suspension_status? method in policy

* Remove manual creation of note

* Update suspend success spec
2022-07-15 09:07:57 -06:00
..
v0 Replace forem/forem instead of thepracticaldev/dev.to (#17626) 2022-05-10 07:26:50 -04:00
v1 New suspend user API endpoint (#18043) 2022-07-15 09:07:57 -06:00