mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
Enterprise user can only create relationships with their own enterprises as parent
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Admin.factory 'Enterprises', (enterprises) ->
|
||||
Admin.factory 'Enterprises', (my_enterprises, all_enterprises) ->
|
||||
new class Enterprises
|
||||
constructor: ->
|
||||
@enterprises = enterprises
|
||||
@my_enterprises = my_enterprises
|
||||
@all_enterprises = all_enterprises
|
||||
|
||||
Reference in New Issue
Block a user