Assert.notNull( acl );
RepositoryFile file = getFileById( acl.getId() );
List<RepositoryFilePermission> perms = new ArrayList<RepositoryFilePermission>();
perms.add( RepositoryFilePermission.ACL_MANAGEMENT );
if ( !hasAccess( file.getPath(), EnumSet.copyOf( perms ) ) ) {
throw new UnifiedRepositoryAccessDeniedException( Messages.getInstance().getString(
"DefaultUnifiedRepository.ERROR_0001_ACCESS_DENIED_UPDATE_ACL", acl.getId() ) );
}
return repositoryFileAclDao.updateAcl( acl );
}