Allow users to delete their header and avatar (#13234)
This is achieved by sending a DELETE request to /settings/profile/pictures/{avatar,header} via a link that is part of the upload form's hint of the respective picture.
This commit is contained in:
@ -100,7 +100,9 @@ Rails.application.routes.draw do
|
||||
get '/settings', to: redirect('/settings/profile')
|
||||
|
||||
namespace :settings do
|
||||
resource :profile, only: [:show, :update]
|
||||
resource :profile, only: [:show, :update] do
|
||||
resources :pictures, only: :destroy
|
||||
end
|
||||
|
||||
get :preferences, to: redirect('/settings/preferences/appearance')
|
||||
|
||||
|
Reference in New Issue
Block a user