Posts 2 Posts
[resolved] Fields for User Connections (2 posts)

  1. jsing
    Posted 2 years ago #

    I have tried defining fields for user connections to no avail. Lets say I have a CPT of "Jobs" and I want to connect a user to it and define how they are connected, like "Manager" or "Designer". Each job would also have a CPT of Tasks connected to it.


    Each User may have different connections for every job, so the standard WP Roles functionality doesn't work. User A may be a Manager on Job 1, and a Designer on Job 2, etc.

    Ideally I would like to be able to build a conditional statement based on their connection. Check if User A is a Manager for Job 1, then they can edit any (edit_others_posts) of the connected Tasks. If they are connected as a Designer they can only edit their own.

    It may be enough to simply verify the connection role a vary the output as I don't think there is a way to temporarily grant a capability.

    Of course this initially relies on the ability to define the connection relationship for the post to user connection. Is that possible?


  2. scribu
    Plugin Author

    Posted 2 years ago #

    Yes, you can add per-connection metadata, although there's currently no UI on the user management screen.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic