diff --git a/frontend/app/scripts/directives/updatableUser.js b/frontend/app/scripts/directives/updatableUser.js index 5ccb175b83..648a16b49c 100644 --- a/frontend/app/scripts/directives/updatableUser.js +++ b/frontend/app/scripts/directives/updatableUser.js @@ -1,7 +1,7 @@ (function() { 'use strict'; angular.module('theHiveDirectives') - .directive('updatableUser', function(UserSrv, UtilsSrv, PSearchSrv) { + .directive('updatableUser', function(UserSrv, UtilsSrv, AuthenticationSrv, NotificationSrv) { return { restrict: 'E', link: function(scope, element, attrs, ctrl, transclude) { @@ -17,15 +17,15 @@ scope.$watch('updatable.updating', function(value) { if(value === true && !cached) { - scope.userList = PSearchSrv(undefined, 'user', { - scope: scope, - baseFilter: { - 'status': 'Ok' - }, - loadAll: true, - sort: '+name', - skipStream: true - }); + UserSrv.list(AuthenticationSrv.currentUser.organisation, {_is: { locked: false }}) + .then(function(users) { + scope.userList = users; + + console.log(scope.userList); + }) + .catch(function(err) { + NotificationSrv.error('Fetching users', err.data, err.status); + }); cached = true; } }); diff --git a/frontend/app/views/directives/updatable-user.html b/frontend/app/views/directives/updatable-user.html index c6b5124a38..c2844dddcd 100644 --- a/frontend/app/views/directives/updatable-user.html +++ b/frontend/app/views/directives/updatable-user.html @@ -15,7 +15,7 @@
diff --git a/frontend/app/views/partials/case/case.details.html b/frontend/app/views/partials/case/case.details.html index 4259b9630d..d80e0b8d60 100644 --- a/frontend/app/views/partials/case/case.details.html +++ b/frontend/app/views/partials/case/case.details.html @@ -48,7 +48,7 @@