How to restrict user to view some record of a collection

Hi,
I am seeing the same issue as Benedict.
I have a Collection called Program which has a property ‘admin_users’ which is a Relation with User(from Admin).
Using RBAC and my custom conditionProvider I am able to filter the listing view correctly, but the value are ‘-’ except for the id. When I click on the row it says ‘You are not allowed to see this document’
My conditionProvider is:

  {
    displayName: "Is Program Editor",
    name: "is-program-editor",
    plugin: "admin",
    handler: (user) => ({
          admin_users: { id: { $eq: user.id } },
    }),
  }

Can you see what I am doing wrong? Is there a way to make a conditionProvider specific to only one Content Type?
Thanks.

2 Likes