No policy to update pivot fields of ManyToMany relationship #5049
Unanswered
kichetof
asked this question in
Ideas & Feature Requests
Replies: 1 comment 1 reply
-
|
seconded - this would be very useful. thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
You can authorize user to attach or detach relationship, but you can't authorize a user to update pivot fields without attaching policy.
In my case, user shouldn't be able to attach a new relationship, only update pivot fields on an existing relation.
Could it be possible to have an
updateAttaching{Model}authorization?Detailed steps to reproduce the issue on a fresh Nova installation:
Create a many to many relationship with some pivot fields.
To update pivot fields, you need
attach{Model}authorizationBeta Was this translation helpful? Give feedback.
All reactions