* 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 |
||
|---|---|---|
| .. | ||
| api | ||
| .keep | ||
| caching_headers.rb | ||
| development_dependency_checks.rb | ||
| edge_cache_safety_check.rb | ||
| image_uploads.rb | ||
| json_api_sort_param.rb | ||
| listings_toolkit.rb | ||
| session_current_user.rb | ||
| valid_request.rb | ||