diff --git a/app/controllers/decidim/apifiles/blobs_controller.rb b/app/controllers/decidim/apifiles/blobs_controller.rb index fccc936..5805495 100644 --- a/app/controllers/decidim/apifiles/blobs_controller.rb +++ b/app/controllers/decidim/apifiles/blobs_controller.rb @@ -77,6 +77,10 @@ def permission_class_chain def permission_scope :admin end + + def current_user + super || try(:current_api_user) + end end end end