Show Display Name of user, not its uid in userlist

This commit is contained in:
Pranav Kant 2017-05-25 19:05:33 +05:30
Родитель c14ff8fee8
Коммит 3940ec64c7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -92,7 +92,7 @@ class WopiController extends Controller {
'Version' => $version,
'UserId' => $res['editor'] !== '' ? $res['editor'] : 'Guest user',
'OwnerId' => $res['owner'],
'UserFriendlyName' => $res['editor'] !== '' ? $res['editor'] : 'Guest user',
'UserFriendlyName' => $res['editor'] !== '' ? \OC_User::getDisplayName($res['editor']) : 'Guest user',
'UserCanWrite' => $res['canwrite'] ? true : false,
'PostMessageOrigin' => $res['server_host'],
]