static function checkEditConflict(&$title, &$user, $action, &$result)
 {
     # restrict rights only if proposed action is 'edit' AND title is valid local AND
     # active action is NOT 'view' (otherwise edit link will be disabled in SkinTemplate.php !)
     # (we will need that link for JS part of AJAX)
     # AND we aren't submitting article (otherwise posted article will be lost)
     if ($action == 'edit' && self::validLocalTitle($title, NS_MAIN) && !self::isViewAction() && !self::isPageSubmit()) {
         if (self::$userCanEditCached === null) {
             $res = self::canUserEdit(wfGetDB(DB_MASTER), $user, $title);
             if (self::canUserEdit(wfGetDB(DB_MASTER), $user, $title) != EC_NO_EDITING) {
                 $result = self::$userCanEditCached = false;
                 return false;
             }
             self::$userCanEditCached = true;
         } else {
             if (!self::$userCanEditCached) {
                 $result = false;
                 return false;
             }
         }
     }
     return true;
 }