mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 18:44:22 +00:00
DS-2889: Fix AuthorizeException by getting a reference to logo prior to nullifying
This commit is contained in:
@@ -202,13 +202,14 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
|
||||
canEdit(context, community);
|
||||
}
|
||||
|
||||
// First, delete any existing logo
|
||||
if (community.getLogo() != null)
|
||||
// First, delete any existing logo
|
||||
Bitstream oldLogo = community.getLogo();
|
||||
if (oldLogo != null)
|
||||
{
|
||||
log.info(LogManager.getHeader(context, "remove_logo",
|
||||
"community_id=" + community.getID()));
|
||||
community.setLogo(null);
|
||||
bitstreamService.delete(context, community.getLogo());
|
||||
bitstreamService.delete(context, oldLogo);
|
||||
}
|
||||
|
||||
if (is != null)
|
||||
|
Reference in New Issue
Block a user