summaryrefslogtreecommitdiff
path: root/app/controllers/groups/uploads_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/groups/uploads_controller.rb')
-rw-r--r--app/controllers/groups/uploads_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups/uploads_controller.rb b/app/controllers/groups/uploads_controller.rb
index 49249f87d31..387f7be56cd 100644
--- a/app/controllers/groups/uploads_controller.rb
+++ b/app/controllers/groups/uploads_controller.rb
@@ -4,7 +4,7 @@ class Groups::UploadsController < Groups::ApplicationController
include UploadsActions
include WorkhorseRequest
- skip_before_action :group, if: -> { action_name == 'show' && embeddable? }
+ skip_before_action :group, if: -> { bypass_auth_checks_on_uploads? }
before_action :authorize_upload_file!, only: [:create, :authorize]
before_action :verify_workhorse_api!, only: [:authorize]