Hi,
I have structured my database so that all users belong to:
- a company (data type)
- and one or more user groups (data type)
I use this to define permissions and access.
Now, I have created a data type that contains files. Each file is similarly linked to:
- a company (data type)
- and one or more user groups (data type)
When I try to create privacy rules that define different permissions, I encounter a couple of problems.
What I want is the following:
WHEN
this file's company is the current user's company
AND
this file's user group contains the current user's user group
THEN
However, I am encountering an error with this rule. To troubleshoot, I have split the rule into two parts, and the first part before the AND operator works, but the part that comes after the AND fails. Can someone guide me in the right direction on what I need to do to get this work?