WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart

Tagged: extension, page, permission, post

  • This topic has 3 replies, 2 voices, and was last updated 9 years, 1 month ago by Syam Mohan.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 6, 2016 at 7:34 am #28135
    James Wee
    Participant

    When I check the docs at:

    Posts/Pages Extended Permissions

    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?

    April 6, 2016 at 5:59 pm #28140
    Syam Mohan
    Keymaster

    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

    April 6, 2016 at 8:13 pm #28152
    James Wee
    Participant

    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. 🙂

    April 11, 2016 at 5:51 pm #28525
    Syam Mohan
    Keymaster

    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

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘[BUG] Page Extension Permission’ is closed to new replies.
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions