Infrastructure and add removeListNeedsHelp to users
This commit is contained in:
@@ -59,6 +59,14 @@ module Users
|
||||
render json: @list
|
||||
end
|
||||
|
||||
# POST /user/remove_list_needs_payment.json
|
||||
def remove_needs_payment
|
||||
@list = active_list
|
||||
render json: json_alert('messages.no_active_list', list_active: false) and return unless @list.try(:id).to_s == params[:id]
|
||||
@list.remove_needs_payment!
|
||||
render json: @list
|
||||
end
|
||||
|
||||
# POST /user/lists/:id/move_table.json?table_id=....
|
||||
# used to move the table
|
||||
# TODO wrap logic of actions
|
||||
|
||||
Reference in New Issue
Block a user