How to create a button with permission
Very similar to the behavior of this button "Mark post as solved" i want to create one the does basically the same.
- If the person has permission to click it, executes the function
- Else show a ephemeral error message to the user like "Only the original poster or support staff can mark a post as resolved!"

