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:
parent
f54df5922e
commit
a907c1da58
4 changed files with 23 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue