Skip to content

Attaching/detaching policy opposite logic #6792

@chimit

Description

@chimit
  • Laravel Version: 11.38.2
  • Nova Version: 5.2.4
  • PHP Version: 8.4.4
  • Database Driver & Version: MySQL 8
  • Operating System and Version: Ubuntu
  • Browser type and version: #.#
  • Reproduction Repository: https://github.com/###/###

Description:

Hi! There is a bug with Authorizing Attaching / Detaching in Nova. In the example in the documentation you can have an attachTag(User $user, Podcast $podcast, Tag $tag) method which should be applied when I open a Podcast resource in Nova and click "Attach Tag" button but instead this policy is applied to the opposite action: when you open the Tag resource and click "Attach Podcast" which is very counter intuitive and illogical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions