filemanager: Show uid if username is not known

This commit is contained in:
Johannes Zellner
2023-08-21 16:54:13 +02:00
parent 91a4883b50
commit d05e16dc11

View File

@@ -37,7 +37,7 @@ export function createDirectoryModel(origin, accessToken, api) {
item.previewUrl = `${origin}/api/v1/${api}/files/${encodeURIComponent(path + '/' + item.fileName)}?access_token=${accessToken}`;
}
item.owner = 'unkown';
item.owner = item.uid;
if (item.uid === 0) item.owner = 'root';
if (item.uid === 33) item.owner = 'www-data';
if (item.uid === 1000) item.owner = 'cloudron';