Topic on Manual talk:Bot passwords

How to grant access to the Page namespace

8
Davious (talkcontribs)

I've set up a bot password and I get a "You do not have permission to edit pages in the Page namespace" when I try to edit a page using the API.

I've granted all the available permissions to the bot password. What am I missing? How do I give the bot password Page edit rights beyond all the permissions available?

Tgr (talkcontribs)

How are permissions for editing that namespace restricted?

Davious (talkcontribs)

I realize I set up special roles for editing pages. Thank you.

Davious (talkcontribs)

Is there a group I can target in LocalSettings to modify bot password permissions?

I'm thinking something similar to

$wgGroupPermissions['user']['specialpermission'] = true;

but a different group than 'user'

Tgr (talkcontribs)

Do you mean adding permissions which are only available when logged in via a bot password, not normally? I don't think that's possible, short of horrible hacks with the UserGetRights hook.

Davious (talkcontribs)

I have a protected namespace

$wgNamespaceProtection[NS_NEW] = array( 'editnew' );

I've added "editnew" as a grant in bp_grants, but I still can't edit the namespace.

Any thoughts about how to enable my bot password bot to edit pages in this namespace?

Tgr (talkcontribs)

Grants are bundles of permissions. See $wgGrantPermissions. You'll probably need something like $wgGrantPermissions['editnew']['editnew'] = true;.

Davious (talkcontribs)

Omg. That helps so much. Thank you

Reply to "How to grant access to the Page namespace"