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

Add example of association authorisation #5

Open
pmackay opened this issue Jul 17, 2022 · 1 comment
Open

Add example of association authorisation #5

pmackay opened this issue Jul 17, 2022 · 1 comment

Comments

@pmackay
Copy link

pmackay commented Jul 17, 2022

The configuration of assocation policies are somewhat tricky, it would be super helpful if this demo included methods in the policy classes to define association permissions.

@adrianthedev
Copy link
Contributor

Hey @pmackay. Apologies for such a late reply. This issue slipped through the cracks in July.
Feel free to ping me again if I miss other issues like this one.

I pushed some code to show and example of how you'd show/hide buttons using the authorization feature for associations.

You can see the results on this team page when you scroll down to the Memberships section. You'll see that the create & attach buttons are missing, and the rows don't have any buttons on them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants