RM-2584: Declare record fails once owner has been deleted.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@111929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2015-09-11 02:07:11 +00:00
parent cafd241aff
commit 7ec44b5aaf

View File

@@ -833,7 +833,8 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService,
{
public Void doWork()
{
if (!getAllAssignedToRole(filePlan, role).contains(authorityName))
if (authorityService.authorityExists(authorityName) &&
!getAllAssignedToRole(filePlan, role).contains(authorityName))
{
String roleAuthority = authorityService.getName(AuthorityType.GROUP, getFullRoleName(role, filePlan));
try