class RedhatAccess::Engine::RhaItem

Start Monkey Patching Implement our own (temp until we fix foreman upstream)

Public Class Methods

new(name, options) click to toggle source
Calls superclass method
# File lib/redhat_access/engine.rb, line 65
def initialize(name, options)
  super(name, options)
end

Public Instance Methods

authorized?() click to toggle source
# File lib/redhat_access/engine.rb, line 69
def authorized?
  return false if @condition and not @condition.call
  User.current.allowed_to?(url_hash.slice(:controller, :action, :id))
rescue => error
  Rails.logger.error "#{error.message} (#{error.class})\n#{error.backtrace.join("\n")}"
  false
end