1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 04:15:28 +02:00

feat(global): introduce user teams and new UAC system (#868)

This commit is contained in:
Anthony Lapenna 2017-05-23 20:56:10 +02:00 committed by GitHub
parent a380fd9adc
commit 5523fc9023
160 changed files with 7112 additions and 3166 deletions

15
app/helpers/userHelper.js Normal file
View file

@ -0,0 +1,15 @@
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;
}]);