apps/workbench/app/controllers/actions_controller.rb
# Skip require_thread_api_token if this is a show action
# for an object uuid that supports anonymous access.
Skip require_thread_api_token if this is a show action
for an object uuid that supports anonymous access.
Skip require_thread_api_token if this is a show action for an object uuid that supports anonymous access .
def show
    @object = model_class.andand.find(params[:uuid])
    if @object.is_a? Link and
        @object.link_class == 'name' and
        ArvadosBase::resource_class_for_uuid(@object.head_uuid) == Collection
      redirect_to collection_path(id: @object.uuid)
    elsif @object.is_a?(Group) and (@object.group_class == 'project' or @object.group_class == 'filter')
      redirect_to project_path(id: @object.uuid)
    elsif @object
      redirect_to @object
    else
      raise ActiveRecord::RecordNotFound
    end
  end
def show @object = model_class . andand . find ( params [ :uuid ] ) if @object . is_a? Link and @object . link_class == 'name' and ArvadosBase :: resource_class_for_uuid ( @object . head_uuid ) == Collection redirect_to collection_path ( id : @object . uuid ) elsif @object . is_a? ( Group ) and ( @object . group_class == 'project' or @object . group_class == 'filter' ) redirect_to project_path ( id : @object . uuid ) elsif @object redirect_to @object else raise ActiveRecord :: RecordNotFound end end
Skip require_thread_api_token if this is a show action
for an object uuid that supports anonymous access.
Skip require_thread_api_token if this is a show action for an object uuid that supports anonymous access .