• Resolved mrupio

    (@mrupio)


    We use “PublishPress Permissions” to restrict certain groups of users to be able to edit only pages that belong to them.
    We also restrict them to be able to set only certain pages as Parents.
    Unfortunately despite we set rule “set as parent” to certain pages (and it works) newly created pages are added to this limited set.

    There’s how to recreate this issue:

    1. Left side of WordPress cockpit ->”Permissions”.
    2. From left side “Groups”.
    3. Start edit permissions of certain group.
    4. “Set Specific Permissions”.
    5. “Post type” set to “Page”, “Operation” set to “Set as Parent”, “Adjustment” set to “Limit to”, “Qualification” set to “selected” (only).
    6. We select correct page (“O nas”) and push “Add selected”. The situation looks like below:

    1. We click “Save Permissions” and we can see it in “Specific Permissions” group.
      At this point it looks good and works good, but after creation of a new page it is added to just created “Set as Parent” rule.
      See below:

    Two newly created pages have been added to limit rule (“Przetargi (…)” and “test 10”. “test 10” has no parent set – if it matters).
    Are we doing something wrong? Is it a bug? Is it a feature?

    Thank you in advance for your answers.

    • This topic was modified 1 year, 7 months ago by mrupio.
Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @mrupio

    Thanks for using PublishPress.

    I dont see any images on your thread. Could you please upload it again so we have better understanding?

    Thread Starter mrupio

    (@mrupio)

    Hi Riza

    I can see these images in Firefox (which I use) but not in Chrome nor in Edge.

    They are served through http. Perhaps this is the reason…

    Anyway.

    The first image:

    https://obrazki.rsm.com.pl/wordpresspermissions/1.jpg

    and the second one:

    https://obrazki.rsm.com.pl/wordpresspermissions/2.jpg

    • This reply was modified 1 year, 7 months ago by mrupio.
    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Thanks for the image.

    I tried to test it, this is my setup:

    And when I create a new page, the list of the page for the parent page only show my page, which is expected behavior.

    Did I miss something in understanding your issue?

    Thread Starter mrupio

    (@mrupio)

    It’s possible you have missed something, but it’s because of my limited English command.

    I’ll try to explain the issue in a bit specific way.

    Here’s how to recreate it:

    1. Create a role with “Set as parent, Limit to” set to particular existing page (let’s name it “Parent”).
      I have also assigned “(no parent)” to “Set as parent, Limit to” as you can see in one of my previous images.
    2. Moreover allow this role to edit page “Child”. Let’s say this page has its parent page set to “Parent”.
      (I want to bond “Child” page with “Parent” or “(no parent)” permanently and I don’t want users who can edit “Child” to be able to change it, i.e. not to allow them to choose another parent.)
    3. Create a new Subscriber user (“User”) and assign him a suplementar role from point 1.
    4. Login in as “User”, start to edit “Child” and try to drop down “Parent Page” drop-down list. You should see list that consists of “Parent” and “(no parent)”. So far it is expected behavior.
    5. In another session login as administrator and create new page “New Page”.
    6. Refresh User’s session and try to drop down “Parent Page” list once again. There’s also newly created “New Page” in this list. This is not what I have expected.
    7. In permissions of role from point 1. you can see that new entry in “Limit to” list was created (for “New Page”).
    • This reply was modified 1 year, 7 months ago by mrupio.
    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @mrupio Could you please check my recording here if I missed some steps to replicate the issue?

    https://www.loom.com/share/7582bf7846d148fd8c1d5ff71bb7c543

    Thread Starter mrupio

    (@mrupio)

    Riza, thank you for your commitment.

    There are differences between what I have performed and what is shown in your video.

    I guess (and I hope) my video below will dispel all doubts about steps that should be followed.

    All steps I have performed.

    As you can see I use plugins User Role Editor (Edytor Ról U?ytkowników), PublishPress Capabilities and PublishPress Permissions.

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @mrupio Thanks for the video.

    Why did you set ‘limit to’ into ‘none’ ?

    Can you try to delete it and see if you still face the issue?

    Thread Starter mrupio

    (@mrupio)

    Why did you set ‘limit to’ into ‘none’ ?

    I want to prohibit users from changing parent page, but I want to leave them ability to set the parent page to “none” (“no parent”, “no existing” – however we call it), so the users could switch parent between “the one and only parent I allow them” and “no parent page at all”.

    Can you try to delete it and see if you still face the issue?

    I did try and that’s it – the issue has vanished.

    But this questions remain:

    What mistake have I done? Wasn’t it legal to set “Limit to” to “none”? If so, than why is it possible to perform? Finally: How can I set “Limit to” to “none” and avoid newly created pages to appear in existing “Limit to” list?

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    I want to prohibit users from changing parent page, but I want to leave them ability to set the parent page to “none” (“no parent”, “no existing” – however we call it), so the users could switch parent between “the one and only parent I allow them” and “no parent page at all”.

    No, that’s not what is meant by “(none)”. This would require a change in the code.

    The closest we could come currently is to assign “Adjustment = Block” permissions for all pages (selecting all pages, the “selected” checkbox and the “sub-pages” checkbox). The problem with this solution is that new pages would not be default-blocked.
    If you want to do this as a workaround, note that Permissions > Setting > Editing > Page Structure will also need to be set to “no Page Parent filter” for Top Level pages:

    Thread Starter mrupio

    (@mrupio)

    I created dedicated page “no parent page” with no parent and I use it to achieve what I described earlier.

    No, that’s not what is meant by “(none)”.

    Riza, can you tell me what means “(none)” is this selection?

    • This reply was modified 1 year, 7 months ago by mrupio.
    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    None is no page/post selected. This is useful for some case like this: https://publishpress.com/knowledge-base/block-users-from-reading-all-posts/

    Thread Starter mrupio

    (@mrupio)

    Riza,

    So the fact that new pages got into limit rules (when “(none)” was selected) was a feature or a bug?

    Plugin Support Riza Maulana Ardiyanto

    (@rizaardiyanto)

    It’s actually a feature

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘PublishPress Permissions: New pages in “Set as Parent” list’ is closed to new replies.