mirror of
https://github.com/nextcloud/server.git
synced 2026-02-13 07:45:08 -05:00
only users can have a display name different from the id
This commit is contained in:
parent
01c50d242b
commit
ea4eedd35a
1 changed files with 4 additions and 1 deletions
|
|
@ -1516,8 +1516,11 @@ class Share extends \OC\Share\Constants {
|
|||
$row['permissions'] &= ~\OCP\PERMISSION_SHARE;
|
||||
}
|
||||
// Add display names to result
|
||||
if ( isset($row['share_with']) && $row['share_with'] != '') {
|
||||
if ( isset($row['share_with']) && $row['share_with'] != '' &&
|
||||
isset($row['share_with']) && $row['share_type'] === self::SHARE_TYPE_USER) {
|
||||
$row['share_with_displayname'] = \OCP\User::getDisplayName($row['share_with']);
|
||||
} else {
|
||||
$row['share_with_displayname'] = $row['share_with'];
|
||||
}
|
||||
if ( isset($row['uid_owner']) && $row['uid_owner'] != '') {
|
||||
$row['displayname_owner'] = \OCP\User::getDisplayName($row['uid_owner']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue