diff --git a/app/controllers/uploads_controller.rb b/app/controllers/uploads_controller.rb index 1036e193633..0a4d1b6dafb 100644 --- a/app/controllers/uploads_controller.rb +++ b/app/controllers/uploads_controller.rb @@ -1,6 +1,6 @@ class UploadsController < ApplicationController before_filter :ensure_logged_in, except: [:show] - skip_before_filter :preload_json, :check_xhr, only: [:show] + skip_before_filter :preload_json, :check_xhr, :redirect_to_login_if_required, only: [:show] def create type = params.require(:type)