From 2278792adac60c52bc2ad43b64b17daa36e22705 Mon Sep 17 00:00:00 2001 From: ferishili Date: Tue, 19 Mar 2024 13:09:41 +0100 Subject: [PATCH] hotfix: add needscutting to video editor --- classes/local/apibridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);