- This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘[BUG] Page Extension Permission’ is closed to new replies.
Tagged: extension, page, permission, post
When I check the docs at:
I bought a PRO license to test it. It hides the page from being edited, which is good. However, when I create a new page, I can still select the parent from the “Page Attribute” dropdown list (as shown below).
This role do not have permission to create/edit/view/delete Degree and child pages, but it is shown there. From my understanding of the docs, the dropdown should only list:
Division
– Finance
– The rest of child pages.
The degree section should not be shown.
Is this a bug that is pending to be fixed?
Hi James,
Extended permissions works using WordPress core filters. Posts/Pages will only be excluded if those filters are executed while selecting the parent posts/pages. I’ll take a look on how those posts are selected and let you know.
Thanks
Syam
Yeah, so to elaborate my case. I have used mass edit to disable degree (and children) and enable Division (and children) for a role.
Degree (Disabled for role)
– asdf1 (Disabled for role)
– asdf2 (Disabled for role)
– asdf3 (Disabled for role)
Division (Enabled for role)
– Finance (Enabled for role)
– President Office (Enabled for role)
– Strat (Enabled for role)
– Vice President (Enabled for role)
– Vice President (Enabled for role)
When going to Page > All Posts, it shows fine. Only the Division page and its children pages are shown. However, when I create a new page, the post attribute dropdown list shows the Degree parent page as well. Which defeats the whole purpose of disabling it for a role.
Do check it and revert back with a solution asap? I like your plugin and hopefully I can continue to use it. 🙂
Hi James,
Those filters do not execute while retrieving the pages list for the Parent attribute. That’s why you see all the pages. And there is no filter which allows you to directly hook into the query. There are a few other filters provided. But hooking into those could potently increase the page load times, if you have a considerable amount of Pages.
Right now I do not see a better way to filter that list. I’ll put this into my to do list, since it require some research.
Thanks
Syam