mirror of https://github.com/portainer/portainer
16 lines
320 B
JavaScript
16 lines
320 B
JavaScript
angular.module('portainer.helpers')
|
|
.factory('UserHelper', [function UserHelperFactory() {
|
|
'use strict';
|
|
var helper = {};
|
|
|
|
helper.filterNonAdministratorUsers = function(users) {
|
|
return users.filter(function (user) {
|
|
if (user.Role !== 1) {
|
|
return user;
|
|
}
|
|
});
|
|
};
|
|
|
|
return helper;
|
|
}]);
|