portainer/app/helpers/userHelper.js

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;
}]);