diff --git a/classes/local/apibridge.php b/classes/local/apibridge.php index f20a89c1..b04db2a6 100644 --- a/classes/local/apibridge.php +++ b/classes/local/apibridge.php @@ -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);