Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy not evaluated or reflected in UI for repeaters #6226

Open
davidbankes opened this issue Feb 21, 2024 · 1 comment
Open

Policy not evaluated or reflected in UI for repeaters #6226

davidbankes opened this issue Feb 21, 2024 · 1 comment
Assignees

Comments

@davidbankes
Copy link

  • Laravel Version: 10.45.1
  • Nova Version: 4.32.13
  • PHP Version: 8.2.16
  • Database Driver & Version:
  • Operating System and Version: MacOs 14.2.1
  • Browser type and version: FF 122.01
  • Reproduction Repository: N/A

Description:

I have a parent model/resource with a HasMany relation. I have two UIs to manage the child relation: a HasMany field on the parent resource, and a Repeater on the parent resource. Both refer to the same underlying model.

The HasMany relation will reflect the associated Policy (e.g., the delete button will disappear if the nova user lacks permission to delete the resource). But on the repeater, all UI remains.

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

  1. Create a model & resource with a HasMany model & resource.
  2. Create a policy for the child resource that disallows, e.g., creation or deletion.
  3. Create a Repeater for the child resource on the parent. Note that it still has UI for creation and deletion of models.
Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
@jeremynikolic jeremynikolic self-assigned this Aug 13, 2024
@stale stale bot removed the stale label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants