portainer/app/helpers/userHelper.js

16 lines
320 B
JavaScript
Raw Normal View History

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