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
parent f54df5922e
commit a907c1da58
4 changed files with 23 additions and 24 deletions

View file

@ -115,6 +115,7 @@ Osem::Application.routes.draw do
get :registrations
patch '/confirm' => 'proposals#confirm'
patch '/restart' => 'proposals#restart'
patch :toogle_favorite
end
end
end