diff --git a/includes/VisualEditorHooks.php b/includes/VisualEditorHooks.php index 3c720dcc41..c8307a5df7 100644 --- a/includes/VisualEditorHooks.php +++ b/includes/VisualEditorHooks.php @@ -225,7 +225,8 @@ class VisualEditorHooks { * @return bool */ private static function isSupportedEditPage( Title $title, User $user, WebRequest $req ) { - if ( $req->getVal( 'action' ) !== 'edit' || !$title->quickUserCan( 'edit' ) ) { + if ( $req->getVal( 'action' ) !== 'edit' || !MediaWikiServices::getInstance() + ->getPermissionManager()->quickUserCan( 'edit', $user, $title ) ) { return false; }