Last modified: 2006-08-08 18:09:26 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 769 - OutputPage::permissionRequired() should suggest groups with the needed permission
OutputPage::permissionRequired() should suggest groups with the needed permis...
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Rotem Liss
Depends on:
Blocks: 767 2422
  Show dependency treegraph
Reported: 2004-10-24 02:19 UTC by Antoine "hashar" Musso (WMF)
Modified: 2006-08-08 18:09 UTC (History)
1 user (show)

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

Show all groups, not just one (3.49 KB, patch)
2006-08-08 17:28 UTC, Aryeh Gregor (not reading bugmail, please e-mail directly)

Description Antoine "hashar" Musso (WMF) 2004-10-24 02:19:21 UTC
$wgOut->sysopRequired(); need to be rewrote/replaced to show a message saying
that the user is lacking "soandso" right.
Comment 1 Brion Vibber 2005-11-29 09:52:58 UTC
There is $wgOut->permissionRequired() now, though it's not always used.

However the permissions are internal to the code and configuration; they are not 
otherwise exposed to users. Knowing which permission is required doesn't necessarily 
help know what user groups would provide it. It might be enhanced to display this...
Comment 2 Rotem Liss 2006-08-08 16:35:57 UTC
Added in r15994. Now, the function scans $wgGroupPermissions, finds the group
which has the permission, and shows it. The permissions themselves are hidden.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-08-08 17:28:15 UTC
Created attachment 2205 [details]
Show all groups, not just one

Why not show all groups instead of just the first encountered?	(Patch tested
on local install, appears not to explode.)
Comment 4 Rotem Liss 2006-08-08 18:09:26 UTC
Applied the patch to r15997.

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