Page.CopyPermissions doesn't seem to work

So we are creating pages in our code that has a parent with right for a ‘viewer’ to see the listpage.

This is how im creating the page and copying the permissions from the listpage.

var newPage = listPage.Children.CreatePage('myPageType', 'myPageType.Template', "Some value", true, ModuleCMS.Instance.AdminToken);

listPage.CopyPermissions(newPage, ModuleCMS.Instance.AdminToken);

Even tho listpage has viewer rights i cant get them to transfer to the newly created page.

Litium version: 6.3.4

Sounds like a bug. Can you please report it on Docs?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.