def authorized?
      trace 'authorized?', 0, "@user: #{@user.inspect}, @action: #{@action.inspect}, @klass: #{@klass.inspect}, @subject: #{@subject.inspect}, @parent: #{@parent.inspect}"
      if params_handler = (user && (permission_by_role || permission_by_member_role))
        params_handler = params_handler_default(params_handler)
      end
      params_handler
    end
def authorized?
      trace 'authorized?', 0, "@user: #{@user.inspect}, @action: #{@action.inspect}, @klass: #{@klass.inspect}, @subject: #{@subject.inspect}, @parent: #{@parent.inspect}"
      if params_handler = (user && (permission_by_role || permission_by_member_role))
        params_handler = params_handler_default(params_handler)
      end
      params_handler
    end
Initializes the permission object

 calling the +authorized?+ method on the instance later will test for the authorization.

 == Parameters:

   +user+ - user object, must respond to role_symbols
   +action+ - action, such as :create, :show, etc. Should not be an alias
   +klass+ - the class of the subject.
   +subject+ - the subject tested for authorization
   +parent+ - the parent object, normally declared through belongs_to

 See {Trust::Authorization} for more details

 Returns params_handler if the user is authorized to perform the action

 The handler contains information used by the resource on retrieing parametes later