Enterprise user can only create relationships with their own enterprises as parent

This commit is contained in:
Rohan Mitchell
2014-05-22 11:02:03 +10:00
parent fb05ad57e1
commit 06955a024f
5 changed files with 79 additions and 60 deletions

View File

@@ -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