Last modified: 2006-08-08 18:09:26 UTC
$wgOut->sysopRequired(); need to be rewrote/replaced to show a message saying
that the user is lacking "soandso" right.
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...
Added in r15994. Now, the function scans $wgGroupPermissions, finds the group
which has the permission, and shows it. The permissions themselves are hidden.
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.)
Applied the patch to r15997.