Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove offline/online code
  • Loading branch information
cbeer committed Mar 28, 2013
1 parent 2f95523 commit 6fd8dca
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/controllers/downloads_controller.rb
Expand Up @@ -7,23 +7,7 @@ def show
if can? :read, params[:id]
@asset = ActiveFedora::Base.find(params[:id], :cast=>true)

if default_datastream?
if @asset.content.live?
# we can now examine @asset and determine if we should send_content, or some other action.
if over_threshold?
@ftp_link =@asset.export_to_ftp(request.host)
else
send_content (@asset)
end
else
# we can now examine @asset and determine if we should send_content, or some other action.
@asset.content.online!(current_user)
render 'offline'
end
else
# A proxy datastream
send_content(@asset)
end
else
logger.info "[DownloadsController] #{current_user ? current_user.user_key : 'anonymous user'} does not have access to read #{params['id']}"
redirect_to "/assets/NoAccess.png"
Expand Down

0 comments on commit 6fd8dca

Please sign in to comment.