Commit 89ad3f3a authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'fix-duplicate-query-in-uploads-controller' into 'master'

Fix duplicate model find query in UploadsController

See merge request gitlab-org/gitlab!20842
parents 5f6b3760 949f4b46
...@@ -20,7 +20,6 @@ class UploadsController < ApplicationController ...@@ -20,7 +20,6 @@ class UploadsController < ApplicationController
skip_before_action :authenticate_user! skip_before_action :authenticate_user!
before_action :upload_mount_satisfied? before_action :upload_mount_satisfied?
before_action :find_model
before_action :authorize_access!, only: [:show] before_action :authorize_access!, only: [:show]
before_action :authorize_create_access!, only: [:create, :authorize] before_action :authorize_create_access!, only: [:create, :authorize]
before_action :verify_workhorse_api!, only: [:authorize] before_action :verify_workhorse_api!, only: [:authorize]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment