Added inaccesible recording format (#2750)

This commit is contained in:
Ahmad Farhat
2021-06-02 18:50:11 -04:00
committed by GitHub
parent 1ff45a4061
commit 0f90c4e873
6 changed files with 61 additions and 10 deletions

View File

@ -28,6 +28,12 @@ class RecordingsController < ApplicationController
"meta_#{META_LISTED}" => (params[:state] == "public"),
}
if params[:state] == "inaccessible"
unpublish_recording(params[:record_id])
else
publish_recording(params[:record_id])
end
res = update_recording(params[:record_id], meta)
# Redirects to the page that made the initial request