Deadbolt: show parts of template only for current logged user
问题 In my system every user has an own public profile. I want to show an "Edit" button only on the profile page of the current logged user. Now I'm doing this by using this code @subjectPresent() { @if(userProfile == userLogged){ <button>Edit</button> } } where userProfile is the owner user of the current page, and userLogged is the actual logged user. Considering that I will have to do this check a lot of times, is there in Deadbolt or Scala a better (cleaner) way to do it? 回答1: As David