CMS permissions on child pages of child pages

Description

When applying for CMS permissions on a page, the permissions are only applied to child pages of the affected page.

This is caused by the following lines of code in SiteTree handler, ajaxChildNodes method

From the Lucee docs, ArrayReverse returns a new array with all the elements reversed without modifying the original array. So the fix for this will be assign the reversed array to additionalNodeArgs.permission_context.

Environment

None

Activity

Show:
Choon Tat Thum
November 7, 2018, 4:50 AM

Pull request awaiting for review

https://github.com/pixl8/Preside-CMS/pull/557

Choon Tat Thum
November 7, 2018, 5:05 AM

Can this fix be applied to Preside 10.8? This issue is happening on a live server running on Preside 10.8.

Dominic Watson
December 6, 2018, 3:46 PM

Awesome sauce, thanks for this Choon Tat. Not sure re applying to 10.8. Is there a good reason not to upgrade to 10.10? The upgrade notes and testing points for 10.9 and 10.10 are not too great.

Will be released in 10.10.12.

Assignee

Unassigned

Reporter

Choon Tat Thum

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

Medium
Configure