RE: Public access to issue attachments ยป Withdraw_attachmentscontroller_login_need.patch
| 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 |