Project

General

Profile

RE: Public access to issue attachments ยป Withdraw_attachmentscontroller_login_need.patch

TortoiseSVN_patch to withdraw login-requirement on attachements - Thomas Lecavelier, 2008-08-05 15:37

View differences:

app/controllers/application.rb (working copy)
79 79
  
80 80
  def require_login
81 81
    if !User.current.logged?
82
      if controller_class_name == "AttachmentsController"
83
        return true
84
      end
82 85
      redirect_to :controller => "account", :action => "login", :back_url => request.request_uri
83 86
      return false
84 87
    end
    (1-1/1)