Skip to content

Commit

Permalink
Define spree_current_user on auth adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
the-krg committed Jul 28, 2023
1 parent 60c72d9 commit ced3dd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/app/controllers/solidus_admin/auth_adapters/backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ def current_ability
def store_location
Spree::UserLastUrlStorer.new(self).store_location

Check warning on line 31 in admin/app/controllers/solidus_admin/auth_adapters/backend.rb

View check run for this annotation

Codecov / codecov/patch

admin/app/controllers/solidus_admin/auth_adapters/backend.rb#L31

Added line #L31 was not covered by tests
end

def spree_current_user
defined?(super) ? super : nil

Check warning on line 35 in admin/app/controllers/solidus_admin/auth_adapters/backend.rb

View check run for this annotation

Codecov / codecov/patch

admin/app/controllers/solidus_admin/auth_adapters/backend.rb#L35

Added line #L35 was not covered by tests
end
end

0 comments on commit ced3dd7

Please sign in to comment.