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 105b2eefb6
commit 22430c6f3f

View File

@@ -833,7 +833,8 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService,
{ {
public Void doWork() 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)); String roleAuthority = authorityService.getName(AuthorityType.GROUP, getFullRoleName(role, filePlan));
try try