Last modified: 2006-08-08 18:09:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2769, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 769 - OutputPage::permissionRequired() should suggest groups with the needed permission
OutputPage::permissionRequired() should suggest groups with the needed permis...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
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: ---


Attachments
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)
Details

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.


Navigation
Links