Index: trunk/phase3/includes/Title.php |
— | — | @@ -1103,6 +1103,11 @@ |
1104 | 1104 | } |
1105 | 1105 | } |
1106 | 1106 | |
| 1107 | + if( $action == 'edit' && !$wgUser->isAllowed( 'edit' ) ) { |
| 1108 | + wfProfileOut( $fname ); |
| 1109 | + return false; |
| 1110 | + } |
| 1111 | + |
1107 | 1112 | wfProfileOut( $fname ); |
1108 | 1113 | return true; |
1109 | 1114 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -276,6 +276,7 @@ |
277 | 277 | * (bug 9903) Don't mark redirects in categories as stubs |
278 | 278 | * (bug 6965) Cannot include "Template:R" with {{R}} (magic word conflict) |
279 | 279 | * Padding parser functions now work with strings like '0' that evaluate to false |
| 280 | +* (bug 10332) Title->userCan( 'edit' ) may return false positive |
280 | 281 | |
281 | 282 | == API changes since 1.10 == |
282 | 283 | |