https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114301

Revision: 114301
Author:   kipcool
Date:     2012-03-20 19:42:26 +0000 (Tue, 20 Mar 2012)
Log Message:
-----------
Do not display the removeCheckBox if the user is not allowed to remove data.

Modified Paths:
--------------
    trunk/extensions/Wikidata/OmegaWiki/forms.php

Modified: trunk/extensions/Wikidata/OmegaWiki/forms.php
===================================================================
--- trunk/extensions/Wikidata/OmegaWiki/forms.php       2012-03-20 19:39:43 UTC 
(rev 114300)
+++ trunk/extensions/Wikidata/OmegaWiki/forms.php       2012-03-20 19:42:26 UTC 
(rev 114301)
@@ -62,7 +62,8 @@
        global $wgUser;
        $dc = wdGetDataSetContext();
        if ( ($dc == "uw") and (! $wgUser->isAllowed( 'deletewikidata-uw' ) ) ) 
{
-               return getCheckBoxWithOnClick( $name, false, 
"removeClicked(this);", true );
+               // do not print the checkbox
+               return '';
        } else {
                return getCheckBoxWithOnClick( $name, false, 
"removeClicked(this);" );
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to