mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-21 00:47:26 +00:00
Split dashboard into single and multiple enterprise views
This commit is contained in:
@@ -19,6 +19,10 @@ Spree.user_class.class_eval do
|
||||
end
|
||||
end
|
||||
|
||||
def manages_one_enterprise?
|
||||
enterprises.length == 1
|
||||
end
|
||||
|
||||
def send_signup_confirmation
|
||||
Spree::UserMailer.signup_confirmation(self).deliver
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user