[HOME PAGE] [STORES] [CLASSICISTRANIERI.COM] [FOTO] [YOUTUBE CHANNEL]


Bug 4230 – SpecialPage.php: function SpecialPage.php 2nd parameter restriction should use permission keys

Last modified: 2005-12-09 23:35:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 4230 - SpecialPage.php: function SpecialPage.php 2nd parameter restriction should use permission keys
SpecialPage.php: function SpecialPage.php 2nd parameter restriction should us...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.6.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-09 09:08 UTC by T. Gries
Modified: 2005-12-09 23:35 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2005-12-09 09:08:34 UTC
The function SpecialPage in module SpecialPage.php currently uses restriction (Minimum user level). IMHO this 
should be changed to use (probably an array of) permission key(s). 
 
Example: 
to suppress to show "User list", if the user hasn't the 'listusers' permission key of bugzilla 3294 (Introducing 
new permissionkeys 'listusers' and 'listcontributions'). Using the current function call, this cannot be achieved 
by passing the permission key to it. 
 
	 * @param string $restriction Minimum user level required, e.g. "sysop" or "developer". 
	 * @param boolean $listed Whether the page is listed in Special:Specialpages 
	 * @param string $function Function called by execute(). By default it is constructed from $name 
	 * @param string $file File which is included by execute(). It is also constructed from $name by default 
	 */ 
 	function SpecialPage( $name = '', $restriction = '', $listed = true, $function = false, $file = 'default', 
$includable = false ) {
Comment 1 Brion Vibber 2005-12-09 23:35:34 UTC
It does use permission keys.

Note You need to log in before you can comment on or make changes to this bug.


Contents Listing Alphabetical by Author:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Unknown Other

Contents Listing Alphabetical by Title:
# A B C D E F G H I J K L M N O P Q R S T U V W Y Z Other

Medical Encyclopedia

Browse by first letter of topic:


A-Ag Ah-Ap Aq-Az B-Bk Bl-Bz C-Cg Ch-Co
Cp-Cz D-Di Dj-Dz E-Ep Eq-Ez F G
H-Hf Hg-Hz I-In Io-Iz J K L-Ln
Lo-Lz M-Mf Mg-Mz N O P-Pl Pm-Pz
Q R S-Sh Si-Sp Sq-Sz T-Tn To-Tz
U V W X Y Z 0-9

Biblioteca - SPANISH

Biblioteca Solidaria - SPANISH

Bugzilla

Ebooks Gratuits

Encyclopaedia Britannica 1911 - PDF

Project Gutenberg: DVD-ROM 2007

Project Gutenberg ENGLISH Selection

Project Gutenberg SPANISH Selection

Standard E-books

Wikipedia Articles Indexes

Wikipedia for Schools - ENGLISH

Wikipedia for Schools - FRENCH

Wikipedia for Schools - SPANISH

Wikipedia for Schools - PORTUGUESE

Wikipedia 2016 - FRENCH

Wikipedia HTML - CATALAN

Wikipedia Picture of the Year 2006

Wikipedia Picture of the Year 2007

Wikipedia Picture of the Year 2008

Wikipedia Picture of the Year 2009

Wikipedia Picture of the Year 2010

Wikipedia Picture of the Year 2011