Bug: non admin page creation/edit changes parent->id to 0
Reported by theohiobloke | November 16th, 2012 @ 02:23 PM | in 2.1.0 (closed)
I have noticed a problem that dates back several versions with
what happens when a non admin creates a page.
Scenario: Teacher has manage permissions for a page and goes to
page manager and chooses to create a new page as a child of her
page. The page is created and has the right permissions but is
placed at the root level of the site not under her page as a
child.
Same scenario played out yesterday with us changing the name of one of the pages using the pages menu > edit page. On saving changes the page was promoted to the top level of the heirarchy.
Comments and changes to this ticket
-
expNinja November 17th, 2012 @ 03:27 AM
- State changed from new to resolved
(from [94c4e4e7003d3013def03073260ce046fc5209ad]) Though we've been unable to reproduce this anomaly in the new navigationController, this code adds non-admin user access to the manage pages view by 1) adding a new module 'checkPermissions' callback method to allow for some psuedo 'global' like permissions...e.g., being granted 'manage' permission to navigation/manage when there is NO src therefore no such permission exists since it can't be created, and 2) restricting the page hierarchy context menu to only active pages, and 3) NOT displaying a 'top of hierarchy' option for non-admin users when editing a page. [#798 state:resolved] https://github.com/exponentcms/exponent-cms/commit/94c4e4e7003d3013...
-
expNinja November 17th, 2012 @ 03:36 AM
(from [0c335527316d120209440fdfc4bff1fb8b15fdd6]) Fixes regression bug by allowing top level pages to remain top-level pages when edited by a non-admin user, but NOT allow non-top-level pages to be moved to become top-level pages.. [#798] https://github.com/exponentcms/exponent-cms/commit/0c335527316d1202...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Bug Tracker for Exponent CMS