ALF-9125: Google Docs - contributor not given proper read/edit privileges

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28599 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2011-06-27 07:43:34 +00:00
parent 1904f66734
commit f8f82b6fbb

View File

@@ -453,11 +453,14 @@ public class GoogleDocsServiceImpl extends TransactionListenerAdapter
{
// Set the permission to the current acl
setGoogleResourcePermission(resource, authorityType, authorityName, aclRole);
}
}
}
}
}
// Always make sure the owner has write permissions on the document
String owner = ownableService.getOwner(nodeRef);
setGoogleResourcePermission(resource, AuthorityType.USER, owner, "writer");
}
/**