Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -754,7 +754,7 @@ |
755 | 755 | ); |
756 | 756 | |
757 | 757 | wfProfileIn( __METHOD__ . '-edit' ); |
758 | | - if ( $this->mTitle->quickUserCan( 'edit' ) && ( $this->mTitle->exists() || $this->mTitle->quickUserCan( 'create' ) ) ) { |
| 758 | + if ( $userCanRead && $this->mTitle->quickUserCan( 'edit' ) && ( $this->mTitle->exists() || $this->mTitle->quickUserCan( 'create' ) ) ) { |
759 | 759 | $istalk = $this->mTitle->isTalkPage(); |
760 | 760 | $istalkclass = $istalk?' istalk':''; |
761 | 761 | $content_actions['edit'] = array( |
Index: trunk/phase3/skins/Vector.php |
— | — | @@ -115,8 +115,8 @@ |
116 | 116 | |
117 | 117 | // Checks if user can... |
118 | 118 | if ( |
119 | | - // edit the current page |
120 | | - $this->mTitle->quickUserCan( 'edit' ) && |
| 119 | + // read and edit the current page |
| 120 | + $userCanRead && $this->mTitle->quickUserCan( 'edit' ) && |
121 | 121 | ( |
122 | 122 | // if it exists |
123 | 123 | $this->mTitle->exists() || |