mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Allow to edit user avatar via user admin page.
This commit is contained in:
parent
97b87dee5f
commit
daba6edf5d
4 changed files with 17 additions and 7 deletions
|
@ -50,7 +50,7 @@ class UserAvatarHelper
|
|||
{
|
||||
//Check if the user has a master attachment defined (meaning he has explicitly defined a profile picture)
|
||||
if ($user->getMasterPictureAttachment() !== null) {
|
||||
return $this->attachmentURLGenerator->getThumbnailURL($user->getMasterPictureAttachment());
|
||||
return $this->attachmentURLGenerator->getThumbnailURL($user->getMasterPictureAttachment(), 'thumbnail_md');
|
||||
}
|
||||
|
||||
//If not check if gravatar is enabled (then use gravatar URL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue