Page MenuHomePhabricator

Page Forms checks editing permissions on main namespace, even if page name formula would create page in a different namespace
Closed, InvalidPublic

Description

I created a custom namespace (Job:) some times ago and it works fine so far. The permissons for editing this Namespace is:

$wgGroupPermissions['sysop']['editjob']

$wgGroupPermissions['MYGROUP']['editjob']

Now I had to create an new usergroup ('MYNEWGROUP') for work on pages in this namespace wich got

$wgGroupPermissions['MYNEWGROUP']['edit'] = true;

$wgGroupPermissions['MYNEWGROUP']['createpage'] = true;

$wgGroupPermissions['MYNEWGROUP']['editjob'] = true;

$wgGroupPermissions['MYNEWGROUP']['createpage'] = true;

$wgGroupPermissions['Bereitschaft']['editmain'] = false;

That means users in Group 'MYNEWGROUP' can (as expected) edit exisiting pages and create new pages within namespace Job: - with wikieditor.

When using PageForms for page creation by #formlink:form=Job the form opens but has a message on it. I't says the user is denied to create pages in main: namespace.

The form has the following info tag for creating the new pages in Job:-namespace

{{{info|page name=Job:J-<unique number;start=1>}}}

When adding the editmain right to the Bereitschaft-group it all works but then this group can also edit all pages in main- namespace what I tried to avoid.

I think that when opening the Form, PageForms not recognizes that the new page will be created in the Job:- Namespace .

Event Timeline

Yaron_Koren renamed this task from userrights and namespaces - usergroup can create page by wikieditor , but not by PageForm. to Page Forms checks editing permissions on main namespace, even if page name formula would create page in a different namespace.Apr 24 2023, 8:38 PM

@Carchaias - what is the exact message you were seeing? I'm not familiar with any permission-related error messages that #formlink displays.

I guess I have to mark this bug as "Invalid", sorry - it doesn't make sense to me. But feel free to re-open it.