Bug fix for inherited permissions COW

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10423 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2008-08-19 14:49:48 +00:00
parent dcc9ac128c
commit d405e72db8
5 changed files with 213 additions and 1 deletions

View File

@@ -516,6 +516,7 @@ public abstract class AbstractPermissionsDaoComponentImpl implements Permissions
else
{
// TODO: Find inheritance
// ATM this should wire up any previous inheritance that existed
changes = aclDaoComponent.enableInheritance(report.getCreated().getId(), null);
}
List<AclChange> all = new ArrayList<AclChange>(changes.size() + report.getChanges().size());

View File

@@ -1489,7 +1489,9 @@ public class AclDaoComponentImpl extends HibernateDaoSupport implements AclDaoCo
getWritable(id, null, null, null, null, false, changes, WriteMode.COPY_ONLY);
}
return mergeInheritedAccessControlList(parent, changes.get(0).getAfter());
List<AclChange> merged = mergeInheritedAccessControlList(parent, changes.get(0).getAfter());
changes.addAll(merged);
return changes;
}
}