Remove upload from wgRestrictionTypes, it is added as a special case in getProtection...
authorAndrew Garrett <werdna@users.mediawiki.org>
Fri, 6 Nov 2009 10:31:09 +0000 (10:31 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Fri, 6 Nov 2009 10:31:09 +0000 (10:31 +0000)
includes/DefaultSettings.php

index 3a04e45..0b3e182 100644 (file)
@@ -1452,7 +1452,7 @@ $wgGroupsRemoveFromSelf = array();
  * You probably shouldn't change this.
  * Translated through restriction-* messages.
  */
-$wgRestrictionTypes = array( 'edit', 'move', 'upload' );
+$wgRestrictionTypes = array( 'edit', 'move' );
 
 /**
  * Rights which can be required for each protection level (via action=protect)