Move update favorites to a separate action

Introduce a separate action `toggle_favorite` to update user favorites events.
Otherwise users with permissions to update the event can have it as favorite.
This commit is contained in:
Ana María Martínez Gómez 2017-03-19 10:34:14 +01:00 committed by Henne Vogelsang
parent 059b5cbf84
commit 2485923319
4 changed files with 28 additions and 31 deletions

View file

@ -166,6 +166,7 @@ Osem::Application.routes.draw do
patch '/withdraw' => 'proposals#withdraw'
patch '/confirm' => 'proposals#confirm'
patch '/restart' => 'proposals#restart'
patch :toogle_favorite
end
end
resources :tracks, except: :destroy do