Skip to content

[5.x] No policy for edit attached on BelongsToMany fields #6929

@mihob

Description

@mihob
  • Laravel Version: 12.33.0
  • Nova Version: 5.7.6
  • PHP Version: 8.4.8

Description:

It appears that there is no way to prevent editing of BelongsToMany pivot fields via policy.

Even if the user does not have rights for attachAnyModel, attachModel or detachModel, the ‘edit attached’ button is displayed and can be clicked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions