Remove obsolete resource loading in direct uploads

The `create` action is the only one in this controller since commit
930bb753c.
This commit is contained in:
Javi Martín
2021-09-23 00:10:34 +02:00
parent f4b338b65f
commit be059f1437

View File

@@ -3,7 +3,6 @@ class DirectUploadsController < ApplicationController
include ActionView::Helpers::UrlHelper
before_action :authenticate_user!
load_and_authorize_resource except: :create
skip_authorization_check only: :create
helper_method :render_destroy_upload_link