Page 1 of 1

Cannot add new pages

Posted: Mon Nov 09, 2009 4:44 pm
by florin
Hi all,

Just added a new user which has the right "Add Pages" I suppose that this user should be able to create new pages but is not. Looking into the code, I see in admin\listcontent.php at line 1084 the code:

if ((check_permission($userid, 'Add Pages') && count($mypages)) || check_permission($userid,'Manage All Content'))

which from what it looks like is seems that a user can only add a new page if it has the "Manage All Content" right or it has the "add pages" right but IT ALSO has pages created, which cannot happen for a new user....

I suppose this is a bug which was missed because most test were done with existing users.

Note: the website is running 1.6.6 upgraded from 1.6.1

Regards,
florin

Re: Cannot add new pages

Posted: Mon Nov 09, 2009 4:58 pm
by Sonya
This permission allows creating new pages under the page where this user is set as Owner or Additional Editor.

Not a bug. Works as desired.