Skip to content

Commit ab3cab3

Browse files
author
Daniel Thies
committed
VID-920: Check user editing
1 parent d23a7b3 commit ab3cab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,9 +821,9 @@ function mod_videotime_core_calendar_get_event_action_string(string $eventtype):
821821
* @param cm_info $cm
822822
*/
823823
function videotime_cm_info_dynamic(cm_info $cm) {
824-
global $PAGE;
824+
global $PAGE, $USER;
825825

826-
if (!isloggedin() || empty($PAGE->course) || $PAGE->user_is_editing()) {
826+
if (defined('BEHAT_SITE_RUNNING') || !$PAGE->has_set_url() || $PAGE->user_is_editing()) {
827827
return;
828828
}
829829

0 commit comments

Comments
 (0)