mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
own and any instead of single and full for abilities
This commit is contained in:
@@ -23,7 +23,7 @@ class AbilityDecorator
|
||||
end
|
||||
|
||||
def can_manage_orders?(user)
|
||||
( user.enterprises.map(&:type) & %w(single full) ).any?
|
||||
( user.enterprises.map(&:sells) & %w(own any) ).any?
|
||||
end
|
||||
|
||||
def can_manage_relationships?(user)
|
||||
|
||||
Reference in New Issue
Block a user