Index: trunk/extensions/TitleBlacklist/TitleBlacklist.list.php |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | } |
84 | 84 | $blacklist = $this->getBlacklist(); |
85 | 85 | foreach ( $blacklist as $item ) { |
86 | | - if( $item->userCan( $title, $wgUser, $action ) ) { |
| 86 | + if( !$item->userCan( $title, $wgUser, $action ) ) { |
87 | 87 | return $item->getRaw(); |
88 | 88 | } |
89 | 89 | } |
— | — | @@ -115,14 +115,14 @@ |
116 | 116 | } |
117 | 117 | if( preg_match( "/^{$this->mRegex}$/s" . ( isset( $this->mParams['casesensitive'] ) ? '' : 'i' ), $title->getFullText() ) ) { |
118 | 118 | if( isset( $this->mParams['autoconfirmed'] ) && $user->isAllowed( 'autoconfirmed' ) ) { |
119 | | - return false; |
| 119 | + return true; |
120 | 120 | } |
121 | 121 | if( !isset( $this->mParams['noedit'] ) && $action == 'edit' ) { |
122 | | - return false; |
| 122 | + return true; |
123 | 123 | } |
124 | | - return true; |
| 124 | + return false; |
125 | 125 | } |
126 | | - return false; |
| 126 | + return true; |
127 | 127 | } |
128 | 128 | |
129 | 129 | public static function newFromString( $line ) { |