Skip to content

Policy which disallows delete triggers Vue warning in browser #6909

@goldmerc

Description

@goldmerc
  • Laravel Version: 11.45.1
  • Nova Version: 5.7.5
  • PHP Version: 8.2

Description:

If I apply a policy to a Nova resource which disallows deleting the resource, I get the following Vue warning in the browser console...

[Vue warn]: Property "relationshipType" was accessed during render but is not defined on instance.

This happens whether the policy is enforced through Eloquent or through Nova.

Detailed steps to reproduce the issue on a fresh Nova installation:

Create a resource. Create a corresponding policy. Change the policy so that all methods return true except delete(). Visit the resource index page in the browser. View the console output.

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