Skip to content

Commit

Permalink
Make authorization work for api users
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Dec 20, 2024
1 parent d351973 commit b5aa237
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/decidim/apifiles/blobs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b5aa237

Please sign in to comment.