| @@ 651-657 (lines=7) @@ | ||
| 648 | $this->preventClickjacking(); |
|
| 649 | // If revision was hidden from sysops and we don't need the checkbox |
|
| 650 | // for anything else, disable it |
|
| 651 | if ( !$this->showTagEditUI && !$rev->userCan( Revision::DELETED_RESTRICTED, $user ) ) { |
|
| 652 | $del = Xml::check( 'deleterevisions', false, [ 'disabled' => 'disabled' ] ); |
|
| 653 | // Otherwise, enable the checkbox... |
|
| 654 | } else { |
|
| 655 | $del = Xml::check( 'showhiderevisions', false, |
|
| 656 | [ 'name' => 'ids[' . $rev->getId() . ']' ] ); |
|
| 657 | } |
|
| 658 | // User can only view deleted revisions... |
|
| 659 | } elseif ( $rev->getVisibility() && $user->isAllowed( 'deletedhistory' ) ) { |
|
| 660 | // If revision was hidden from sysops, disable the link |
|
| @@ 432-440 (lines=9) @@ | ||
| 429 | // Show checkboxes instead of links. |
|
| 430 | if ( $canHide && $this->flags & self::USE_CHECKBOXES && !$canViewThisSuppressedEntry ) { |
|
| 431 | // If event was hidden from sysops |
|
| 432 | if ( !self::userCan( $row, LogPage::DELETED_RESTRICTED, $user ) ) { |
|
| 433 | $del = Xml::check( 'deleterevisions', false, [ 'disabled' => 'disabled' ] ); |
|
| 434 | } else { |
|
| 435 | $del = Xml::check( |
|
| 436 | 'showhiderevisions', |
|
| 437 | false, |
|
| 438 | [ 'name' => 'ids[' . $row->log_id . ']' ] |
|
| 439 | ); |
|
| 440 | } |
|
| 441 | } else { |
|
| 442 | // If event was hidden from sysops |
|
| 443 | if ( !self::userCan( $row, LogPage::DELETED_RESTRICTED, $user ) ) { |
|