MDL-60444 calendar: Correct variable name
This commit is contained in:
+1
-1
@@ -2437,7 +2437,7 @@ function calendar_user_can_add_event($course) {
|
||||
|
||||
calendar_get_allowed_types($allowed, $course);
|
||||
|
||||
return (bool)($allowed->user || $allowed->groups || $allowed->courses || $allowed->category || $allowed->site);
|
||||
return (bool)($allowed->user || $allowed->groups || $allowed->courses || $allowed->categories || $allowed->site);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user