This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
BelongsToMany relation not fully respect policy rules in attach #6353
Labels
pending
Issues that are pending triage
Description:
I found a (possible) bug in the way
BelongsToMany
works. In the policy I created a condition likeIt works, the Attach button disappears if it is exceeded limit of 6.
However, if you use the Attach & Attach Another functionality, then the policy does not work and you can add it endlessly.
Detailed steps to reproduce the issue on a fresh Nova installation:
BelongsToMany
relation fieldExpected Behavior
When clicking Attach & Attach Another - the policy checks the conditions and returns 403 if policy return false
The text was updated successfully, but these errors were encountered: