Backrelation but use field from other relation as relField #4969
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes.
See the previous answer.
I'm a bit confused and don't understand the need of both groups->company and company->groups relations. Maybe a simple "isAdmin" Unless I'm not reading it correctly, based on the ERD it looks like a single user can have only 1 group, which means that the user's group is either an "admin" group or not. In that case the // require the user to be authenticated
@request.auth.id != "" &&
// require the authenticated company's adminGroup to match with the group of the user we want to access
@request.auth.group.company.adminGroup = group |
Beta Was this translation helpful? Give feedback.
Yes.
referenceCollection_via_relField
represents records fromreferenceCollection
. The_via_relField
specifies what field to use to perform the "join".See the previous answer.
I'm a bit confused and don't understand the need of both groups->c…