mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Scoping users correctly for realz this time
This commit is contained in:
@@ -13,7 +13,7 @@ Spree.user_class.class_eval do
|
||||
|
||||
def known_users
|
||||
if admin?
|
||||
Spree::User.all
|
||||
Spree::User.scoped
|
||||
else
|
||||
Spree::User
|
||||
.includes(:enterprises)
|
||||
|
||||
Reference in New Issue
Block a user