Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -324,7 +324,7 @@ |
325 | 325 | wfProfileOut( $fname ); |
326 | 326 | return; |
327 | 327 | } |
328 | | - if ( !$wgUser->isAllowed('edit') ) { |
| 328 | + if ( (!$this->mTitle->isTalkPage() && !$wgUser->isAllowed('edit')) || ($this->mTitle->isTalkPage() && !$wgUser->isAllowed('edittalk')) ) { |
329 | 329 | if ( $wgUser->isAnon() ) { |
330 | 330 | wfDebug( "$fname: user must log in\n" ); |
331 | 331 | $this->userNotLoggedInPage(); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -959,6 +959,7 @@ |
960 | 960 | $wgGroupPermissions['*' ]['createaccount'] = true; |
961 | 961 | $wgGroupPermissions['*' ]['read'] = true; |
962 | 962 | $wgGroupPermissions['*' ]['edit'] = true; |
| 963 | +$wgGroupPermissions['*' ]['edittalk'] = true; |
963 | 964 | $wgGroupPermissions['*' ]['createpage'] = true; |
964 | 965 | $wgGroupPermissions['*' ]['createtalk'] = true; |
965 | 966 | |
— | — | @@ -966,6 +967,7 @@ |
967 | 968 | $wgGroupPermissions['user' ]['move'] = true; |
968 | 969 | $wgGroupPermissions['user' ]['read'] = true; |
969 | 970 | $wgGroupPermissions['user' ]['edit'] = true; |
| 971 | +$wgGroupPermissions['user' ]['edittalk'] = true; |
970 | 972 | $wgGroupPermissions['user' ]['createpage'] = true; |
971 | 973 | $wgGroupPermissions['user' ]['createtalk'] = true; |
972 | 974 | $wgGroupPermissions['user' ]['upload'] = true; |