Index: trunk/phase3/includes/Title.php |
— | — | @@ -1290,12 +1290,12 @@ |
1291 | 1291 | # XXX: Find a way to work around the php bug that prevents using $this->userCanEditCssSubpage() |
1292 | 1292 | # and $this->userCanEditJsSubpage() from working |
1293 | 1293 | # XXX: right 'editusercssjs' is deprecated, for backward compatibility only |
1294 | | - if( $this->isCssSubpage() && ( !$user->isAllowed('editusercssjs') || !$user->isAllowed('editusercss') ) |
| 1294 | + if( $this->isCssSubpage() && !( $user->isAllowed('editusercssjs') || $user->isAllowed('editusercss') ) |
1295 | 1295 | && $action != 'patrol' |
1296 | 1296 | && !preg_match('/^'.preg_quote($user->getName(), '/').'\//', $this->mTextform) ) |
1297 | 1297 | { |
1298 | 1298 | $errors[] = array('customcssjsprotected'); |
1299 | | - } else if( $this->isJsSubpage() && ( !$user->isAllowed('editusercssjs') || !$user->isAllowed('edituserjs') ) |
| 1299 | + } else if( $this->isJsSubpage() && !( $user->isAllowed('editusercssjs') || $user->isAllowed('edituserjs') ) |
1300 | 1300 | && $action != 'patrol' |
1301 | 1301 | && !preg_match('/^'.preg_quote($user->getName(), '/').'\//', $this->mTextform) ) |
1302 | 1302 | { |