We can use CanCan here:

    if can? :view_transactions
    ...

You'll need to add the relevant code to `app/models/ability.rb` to use a custom action name. See here for more info: https://github.com/ryanb/cancan/wiki/Custom-Actions