);
wfProfileIn( __METHOD__ . '-edit' );
- if ( $this->mTitle->quickUserCan( 'edit' ) && ( $this->mTitle->exists() || $this->mTitle->quickUserCan( 'create' ) ) ) {
+ if ( $userCanRead && $this->mTitle->quickUserCan( 'edit' ) && ( $this->mTitle->exists() || $this->mTitle->quickUserCan( 'create' ) ) ) {
$istalk = $this->mTitle->isTalkPage();
$istalkclass = $istalk?' istalk':'';
$content_actions['edit'] = array(
// Checks if user can...
if (
- // edit the current page
- $this->mTitle->quickUserCan( 'edit' ) &&
+ // read and edit the current page
+ $userCanRead && $this->mTitle->quickUserCan( 'edit' ) &&
(
// if it exists
$this->mTitle->exists() ||