Best approach to show/hide content based on users permission

I’m looking for the best way to show or hide content for a user based in its permission. I could easy just check if current user is admin or something like that but lets say a user want to edit his post. Then both admin and the author needs to be able to see the edit button, what’s the best solution for this?

Before, I used this custom ‘can’ helper but after a update in Ember Auth this solution ended to work, see this issue.