r114301 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114300‎ | r114301 | r114302 >
Date:19:42, 20 March 2012
Author:kipcool
Status:new
Tags:
Comment:
Do not display the removeCheckBox if the user is not allowed to remove data.
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/forms.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/forms.php
@@ -62,7 +62,8 @@
6363 global $wgUser;
6464 $dc = wdGetDataSetContext();
6565 if ( ($dc == "uw") and (! $wgUser->isAllowed( 'deletewikidata-uw' ) ) ) {
66 - return getCheckBoxWithOnClick( $name, false, "removeClicked(this);", true );
 66+ // do not print the checkbox
 67+ return '';
6768 } else {
6869 return getCheckBoxWithOnClick( $name, false, "removeClicked(this);" );
6970 }

Status & tagging log