mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
Make sure userSelect directive uses our Admin::UserSerializer instead of base Spree api view
This commit is contained in:
committed by
Rob Harrington
parent
ec5ce45850
commit
b893dea810
@@ -46,6 +46,7 @@ angular.module("admin.enterprises")
|
||||
manager =
|
||||
id: manager.id
|
||||
email: manager.email
|
||||
confirmed: manager.confirmed
|
||||
if (user for user in $scope.Enterprise.users when user.id == manager.id).length == 0
|
||||
$scope.Enterprise.users.push manager
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user