Hello
When trying to undelete a deleted page I got this message : Permission error You are not allowed to execute the action you have requested.
This message is so terse that it does not help to fix the problem. Could it be modified in such a way as to tell - the origin of the "permission error" (Wiki or Database). - how to fix it.
Thanks François Colonna
On 24/04/2008, Frames Project frames@lct.jussieu.fr wrote:
Hello
When trying to undelete a deleted page I got this message : Permission error You are not allowed to execute the action you have requested.
This message is so terse that it does not help to fix the problem. Could it be modified in such a way as to tell
- the origin of the "permission error" (Wiki or Database).
- how to fix it.
It's a Wiki error, and can be customised by editing [[Mediawiki:badaccess-group0]] (editing Mediawiki pages is restricted to sysops by default). That error means you aren't in a group that has permission to do the requested action - in fact, I think that specific message means there are no groups that have the required permission. As far as I know, sysops can undelete pages by default, so I expect you've removed that permission from them in LocalSettings.php and not given it to anyone else.
Le jeudi 24 avril 2008 à 16:36 +0100, Thomas Dalton a écrit :
On 24/04/2008, Frames Project frames@lct.jussieu.fr wrote:
Hello
When trying to undelete a deleted page I got this message : Permission error You are not allowed to execute the action you have requested.
This message is so terse that it does not help to fix the problem. Could it be modified in such a way as to tell
- the origin of the "permission error" (Wiki or Database).
- how to fix it.
It's a Wiki error, and can be customised by editing [[Mediawiki:badaccess-group0]] (editing Mediawiki pages is restricted to sysops by default). That error means you aren't in a group that has permission to do the requested action - in fact, I think that specific message means there are no groups that have the required permission. As far as I know, sysops can undelete pages by default, so I expect you've removed that permission from them in LocalSettings.php and not given it to anyone else.
Thank you. It works now.
I did two mistakes : 1. I re-initialized the array $wgGroupPermissions in LocalSettings.php, 2. I thought the permission name was "undelete" and it was not (by the way, I still do not know which name it is.) F. Colonna
- I re-initialized the array $wgGroupPermissions in LocalSettings.php,
Ooo, yes, that would break a lot!
- I thought the permission name was "undelete" and it was not
(by the way, I still do not know which name it is.)
It could be "restore"... I'm not sure without looking it up.
Le jeudi 24 avril 2008 à 17:36 +0100, Thomas Dalton a écrit :
- I re-initialized the array $wgGroupPermissions in LocalSettings.php,
Ooo, yes, that would break a lot!
- I thought the permission name was "undelete" and it was not
(by the way, I still do not know which name it is.)
It could be "restore"... I'm not sure without looking it up.
below all the permissions I took from "/includes/DefaultSettings.php"
$wgGroupPermissions['sysop']['block'] = true; $wgGroupPermissions['sysop']['createaccount'] = true; $wgGroupPermissions['sysop']['delete'] = true; $wgGroupPermissions['sysop']['deletedhistory'] = true; $wgGroupPermissions['sysop']['editinterface'] = true; $wgGroupPermissions['sysop']['import'] = true; $wgGroupPermissions['sysop']['importupload'] = true; $wgGroupPermissions['sysop']['move'] = true; $wgGroupPermissions['sysop']['patrol'] = true; $wgGroupPermissions['sysop']['autopatrol'] = true; $wgGroupPermissions['sysop']['protect'] = true; $wgGroupPermissions['sysop']['proxyunbannable'] = true; $wgGroupPermissions['sysop']['rollback'] = true; $wgGroupPermissions['sysop']['trackback'] = true; $wgGroupPermissions['sysop']['upload'] = true; $wgGroupPermissions['sysop']['reupload'] = true; $wgGroupPermissions['sysop']['reupload-shared'] = true; $wgGroupPermissions['sysop']['unwatchedpages'] = true; $wgGroupPermissions['sysop']['autoconfirmed'] = true; $wgGroupPermissions['sysop']['upload_by_url'] = true; $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
It is not clear which is the good one.
Best, Francois Colonna
Ok, I looked it up! It's "undelete", but it only exists in the latest version. If you're using an older version "delete" gives the permission to be delete and undelete.
mediawiki-l@lists.wikimedia.org