Skip to content

Commit

Permalink
hotfix: add needscutting to video editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Mar 19, 2024
1 parent a2416a1 commit 2278792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/apibridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ public function can_edit_event_in_editor($video, $courseid) {
// We check if the basic editor integration configs are set, the video processing state is succeeded
// (to avoid process failure) and there is internal publication status (to avoid error 400 in editor).
if (get_config('block_opencast', 'enable_opencast_editor_link_' . $this->ocinstanceid) &&
isset($video->processing_state) && $video->processing_state == "SUCCEEDED" &&
isset($video->processing_state) && in_array($video->processing_state, ["SUCCEEDED", "NEEDSCUTTING"]) &&
isset($video->publication_status) && is_array($video->publication_status) &&
in_array('internal', $video->publication_status)) {
$context = context_course::instance($courseid);
Expand Down

0 comments on commit 2278792

Please sign in to comment.