From: Brion Vibber Date: Sat, 25 Dec 2004 00:04:19 +0000 (+0000) Subject: * (bug 1193) Fix move-only page protection mode X-Git-Tag: 1.5.0alpha1~1030 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=c0ead8a9d53468bf67e537bb2195a1542a1cf74a;p=lhc%2Fweb%2Fwiklou.git * (bug 1193) Fix move-only page protection mode --- diff --git a/includes/Title.php b/includes/Title.php index e0dd5b2bf0..e9d723d5d0 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1339,7 +1339,9 @@ class Title { return 'badarticleerror'; } - if ( $auth && ( !$this->userCanEdit() || !$nt->userCanEdit() ) ) { + if ( $auth && ( + !$this->userCanEdit() || !$nt->userCanEdit() || + !$this->userCanMove() || !$nt->userCanMove() ) ) { return 'protectedpage'; }