root is uid 0

This commit is contained in:
Johannes Zellner
2020-07-10 14:17:30 +02:00
parent fb637f61f3
commit 4ebaa674c3

View File

@@ -7,12 +7,12 @@ var app = angular.module('Application', ['angular-md5', 'ui-notification']);
angular.module('Application').filter('prettyOwner', function () {
return function (uid) {
if (uid === 1) return 'root';
if (uid === 0) return 'root';
if (uid === 33) return 'cloudron';
if (uid === 1000) return 'cloudron';
if (uid === 1001) return 'git';
return 'unkown';
return uid;
}
});