filemanager: Show uid if username is not known
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user