panzupa
10/09/2017, 7:44 PMUser it is used only to authenticate against auth0 and it is connected with MyUser (one-to-one) type - which contains all user information. The MyUser can have many CompanyAssignments. CompanyAssignement is type that definies relation between MyUser and any Company that I have in my system. For example MyUser Joe can be Admin of Facebook (first instance of CompanyAssignment) and Joe can also be Contractor for Google (second instance of CompanyAssignment). Now I want to write query permission that will check type of CompanyAssignment that MyUser has (ie. Admin can edit, contractor can view etc.). Is that even possible given that I only have access to $node_id and $user_id in permission query?