fix broken unauthenticated page

This commit is contained in:
Rimian Perkins
2019-12-03 14:31:15 +11:00
parent 56b73139d1
commit d8a3ae5554
3 changed files with 57 additions and 38 deletions
+2
View File
@@ -44,6 +44,8 @@ module DiscoursePatrons
end
def current_user_products
return [] if current_user.nil?
::DiscoursePatrons::Customer
.select(:product_id)
.where(user_id: current_user.id)