Skip to content

Commit 98695b6

Browse files
committed
Use Spree.user_class instead of Spree::LegacyUser
Spree::LegacyUser is only used in the dummy app for testing so replaced it with Spree.user_class
1 parent f401ba6 commit 98695b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/app/controllers/spree/api/base_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def permitted_line_item_attributes
6868
end
6969

7070
def permitted_user_attributes
71-
can?(:admin, Spree::LegacyUser) ? super + admin_metadata_attributes : super
71+
can?(:admin, Spree.user_class) ? super + admin_metadata_attributes : super
7272
end
7373

7474
def load_user

0 commit comments

Comments
 (0)