Files
dunlop-core/app/helpers/dunlop/authorization_helper.rb
T
2018-01-20 13:02:44 -03:00

10 lines
294 B
Ruby

module Dunlop::AuthorizationHelper
def has_permission_of_type(type, user = current_user)
Dunlop::Ability.has_permission_of_type(type, user)
end
def any_permission_starts_with(expression, user = current_user)
Dunlop::Ability.any_permission_starts_with(expression, user)
end
end