Supplier mail changing and polishing
This commit is contained in:
@@ -50,6 +50,11 @@ class User
|
||||
save
|
||||
end
|
||||
|
||||
# This is the user name as it is shown to the supplier
|
||||
def supplier_name
|
||||
auth_data['info']['name'] rescue I18n.t('user.unknown_supplier_name')
|
||||
end
|
||||
|
||||
def has_active_list?
|
||||
active_list_id.present?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user