Skip to content

Commit

Permalink
Allow setting recording translated flag via internal api and active a…
Browse files Browse the repository at this point in the history
…dmin
  • Loading branch information
QbDesu committed Jan 23, 2025
1 parent 15e60e9 commit 6649c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/admin/recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

controller do
def permitted_params
params.permit recording: [:folder, :filename, :mime_type, :language, :html5, :high_quality, :size, :length, :width, :height, :state, :event_id]
params.permit recording: [:folder, :filename, :mime_type, :language, :translated, :html5, :high_quality, :size, :length, :width, :height, :state, :event_id]
end
end
end
2 changes: 1 addition & 1 deletion app/controllers/api/recordings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ def set_recording
end

def recording_params
params.require(:recording).permit(:folder, :filename, :mime_type, :language, :high_quality, :html5, :size, :width, :height, :length, :state)
params.require(:recording).permit(:folder, :filename, :mime_type, :language, :translated, :high_quality, :html5, :size, :width, :height, :length, :state)
end
end

0 comments on commit 6649c19

Please sign in to comment.