Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -241,7 +241,7 @@ |
242 | 242 | } else if( self::typeAction($row,'protect',array('modify','protect','unprotect')) ) { |
243 | 243 | $revert = '(' . $this->skin->makeKnownLinkObj( $title, $this->message['hist'], |
244 | 244 | 'action=history&offset=' . urlencode($row->log_timestamp) ) . ')'; |
245 | | - if( self::typeAction($row,'protect','modify') && $wgUser->isAllowed('protect') ) { |
| 245 | + if( $wgUser->isAllowed('protect') && $row->log_action != 'unprotect' ) { |
246 | 246 | $revert .= ' (' . $this->skin->makeKnownLinkObj( $title, $this->message['protect_change'], |
247 | 247 | 'action=unprotect' ) . ')'; |
248 | 248 | } |