diff --git a/lib/WebGUI/Asset/Wobject/Gallery.pm b/lib/WebGUI/Asset/Wobject/Gallery.pm index ad29886b9..a8110175b 100644 --- a/lib/WebGUI/Asset/Wobject/Gallery.pm +++ b/lib/WebGUI/Asset/Wobject/Gallery.pm @@ -1104,6 +1104,7 @@ sub www_addAlbumService { description => $form->get('synopsis','textarea'), synopsis => $form->get('synopsis','textarea'), othersCanAdd => $form->get('othersCanAdd','yesNo'), + ownerUserId => $session->user->userId, }); $album->requestAutoCommit; diff --git a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm index 2bd363323..ce9ebe02d 100644 --- a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm +++ b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm @@ -1019,6 +1019,7 @@ sub www_addFileService { title => $form->get('title','text'), description => $form->get('synopsis','textarea'), synopsis => $form->get('synopsis','textarea'), + ownerUserId => $session->user->userId, }); my $storage = $file->getStorageLocation;