diff --git a/lib/pagelib.php b/lib/pagelib.php index e461f19be1c..b49b6f10912 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -634,7 +634,7 @@ class moodle_page { if ($this->_legacypageobject) { return $this->_legacypageobject->user_allowed_editing(); } - return has_any_capability($this->all_editing_caps(), $this->context, null, false); + return has_any_capability($this->all_editing_caps(), $this->context); } /**