lib/patch/action_controller/concerns/authorization.rb in care-0.1.0 vs lib/patch/action_controller/concerns/authorization.rb in care-0.1.1
- old
+ new
@@ -22,10 +22,10 @@
def current_account_id
access_token[:account][:id]
end
def current_organization_id
- @current_organization_id ||= request.headers[:organization_id]
+ @current_organization_id ||= request.headers['organization-id']
end
def permissions
@permissions ||= access_token[:permissions][current_organization_id]&.map(&:to_sym) || []
end