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

Apply policy on the belongs_to field create new link #2723

Open
Paul-Bob opened this issue Apr 25, 2024 · 2 comments
Open

Apply policy on the belongs_to field create new link #2723

Paul-Bob opened this issue Apr 25, 2024 · 2 comments
Labels
Authorization Bug Something isn't working Task Something to get done

Comments

@Paul-Bob
Copy link
Contributor

Feature

field :user, as: :belongs_to should render the "Create new user" link only if the association policy allows it.

image

Current workarounds

Custom logic inside can_create block

Copy link
Contributor

This issue has been marked as stale because there was no activity for the past 15 days.

@github-actions github-actions bot added the Stale label May 11, 2024
@Paul-Bob Paul-Bob removed the Stale label May 13, 2024
Copy link
Contributor

This issue has been marked as stale because there was no activity for the past 15 days.

@github-actions github-actions bot added the Stale label May 29, 2024
@adrianthedev adrianthedev added Bug Something isn't working Task Something to get done Authorization and removed Stale labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authorization Bug Something isn't working Task Something to get done
Projects
Status: Next up
Development

No branches or pull requests

2 participants