Index: trunk/extensions/Collection/Collection.templates.php |
— | — | @@ -132,6 +132,9 @@ |
133 | 133 | if ( $GLOBALS['wgUser']->isLoggedIn() ) { |
134 | 134 | $canSaveUserPage = $GLOBALS['wgUser']->isAllowed( 'collectionsaveasuserpage' ); |
135 | 135 | $canSaveCommunityPage = $GLOBALS['wgUser']->isAllowed( 'collectionsaveascommunitypage' ); |
| 136 | + } else { |
| 137 | + $canSaveUserPage = false; |
| 138 | + $canSaveCommunityPage = false; |
136 | 139 | } |
137 | 140 | if ( $GLOBALS['wgEnableWriteAPI'] && ( $canSaveUserPage || $canSaveCommunityPage ) ) { |
138 | 141 | ?> |