Skip to content

Commit 2ebfa22

Browse files
committed
hide edit buttons for unlogged users
1 parent 98fcbe3 commit 2ebfa22

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

LocalSettings.d/base/Skin.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,19 @@
4949
}
5050
};
5151

52-
# Hide SearchBar and New Item button for anonymous users
53-
/*
52+
# Hide Buttons after new-item for anonymous users
5453
$wgHooks['BeforePageDisplay'][] = function( $out, $skin ) {
5554
if ( !$out->getUser()->isRegistered() ) {
5655
$out->addInlineStyle( '
57-
#p-search,
58-
.p-search,
59-
#n-New-item {
56+
/*#p-search,
57+
.p-search,*/
58+
#n-New-item,
59+
#n-New-item ~ * {
6060
display: none !important;
6161
}
6262
' );
6363
}
6464
};
65-
*/
6665

6766
# https://github.com/ProfessionalWiki/MardiSkin
6867
wfLoadExtension( 'Bootstrap' );

0 commit comments

Comments
 (0)