We have a Lightning Component button which allows Users to provide discounts on Opportunities.
We are currently leveraging the "Quick Action" functionality to display it on some page layouts.
The problem is that these layouts are available for Users who may neither have the Profiles ("Sales" or "Risk Ops") nor the Roles ("Vice President" or "Managing Director") which would allow the User to apply the discounts.
We have backend validation to ensure that the User will have either an appropriate Profile or an appropriate Role (it isn't necessary for the user to have both).
However, for good UX, we want to NOT DISPLAY the button unless the User is permitted to actually apply the discount.
I was looking in the Permission Sets, but I couldn't find any way to make buttons visible or invisible.
Is there a way to do this?
Or any ideas for good alternatives?