• Resolved ricks03

    (@ricks03)


    I have a user with a custom role (Member). The user has no other roles. I have changed the advanced settings (set Capabilities Externally) to use User Role Editor, and assigned that custom role all of the frontier_* permissions.

    I have a post created / owned by that user.

    The user views the post, and there’s no edit post at the bottom? I would like the user to be sent to the Frontier Post “My Post” page.

    If the Administrator views the same post, they get an Edit button, and selecting it redirects the user to the Frontier Post “My Post” page. This happens whether I have the “Super Admin Edit Link” option selected for Post or not (which also seems weird?)

    Clearly I’m misunderstanding a permission set somewhere. Help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ricks03

    (@ricks03)

    It looks like the user needs the edit_published_posts capability to get the edit button to appear? I thought I could set all permissions only with the frontier_* capabilities.

    Plugin Author finnj

    (@finnj)

    You do not need to use User role editor for custom roles.

    You can add the Frontier Post Capabilities to a custom role (but the profile would also need wordpress standard capabilities

    if you choose to use User Role Editor, you will manually have to maintain capabilities (incl. Frontier Post Capabilities) in URE

    More info: https://wpfrontier.com/frontier-post-profiles-capabilities/

    also check this: https://developer.ww.wp.xz.cn/reference/functions/add_role/

    Thread Starter ricks03

    (@ricks03)

    Yup, I know I don’t need URE for FP. But since I have to use it for other reasons, I might as well have all my permissions in one place. The permissions for the role(s) are set programmatically, so it’s easy enough to maintain.

    My comment was that the frontier_* capabilities are, I thought, the only ones that would need to be set in order to use FP.

    However, even if I give a user all of the FP capabilities, the Edit button still didn’t appear. I had to add edit_published_posts

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom role and user-editing’ is closed to new replies.