def can?(action, resource, options = {})
      keeper = ActionAccess::Keeper.instance
      clearance_levels = Array(clearance_levels())
      clearance_levels.any? { |c| keeper.lets? c, action, resource, options }
    end
def can?(action, resource, options = {})
      keeper = ActionAccess::Keeper.instance
      clearance_levels = Array(clearance_levels())
      clearance_levels.any? { |c| keeper.lets? c, action, resource, options }
    end
Check if the user is authorized to perform a given action.
 Resource can be either plural or singular.

 == Examples:

   user.can? :show, :articles
   user.can? :show, @article
   user.can? :show, ArticlesController
   # True if any of the user's clearance levels allows to access 'articles#show'

   user.can? :edit, :articles, namespace: :admin
   user.can? :edit, @admin_article
   user.can? :edit, Admin::ArticlesController
   # True if any of the user's clearance levels allows to access 'admin/articles#edit'