lib/trust/permissions.rb
# Returns params_handler if the user is authorized to perform the action
#
# The handler contains information used by the resource on retrieing parametes later
Returns params_handler if the user is authorized to perform the action
The handler contains information used by the resource on retrieing parametes later
Returns params_handler if the user is authorized to perform the action The handler contains information used by the resource on retrieing parametes later
def authorized?
      trace 'authorized?', 0, action: @action, user: @user, subject: @subject, parent: @parent, class: @klass
      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 , action : @action , user : @user , subject : @subject , parent : @parent , class : @klass if params_handler = ( user && ( permission_by_role || permission_by_member_role ) ) params_handler = params_handler_default ( params_handler ) end params_handler end
Returns params_handler if the user is authorized to perform the action
The handler contains information used by the resource on retrieing parametes later
Returns params_handler if the user is authorized to perform the action The handler contains information used by the resource on retrieing parametes later