private List<AclMethod> getAcl(String file, boolean folder) {
List<AclMethod> acls = new ArrayList<AclMethod>();
IAuthorizationPolicy policy = PentahoSystem.get( IAuthorizationPolicy.class );
boolean isAdmin = policy.isAllowed( AdministerSecurityAction.NAME );
IUserContentAccess access = contentAccessFactory.getUserContentAccess(null);
if (access.fileExists(file)) {
acls.add(AclMethod.READ);
if (isAdmin || access.hasAccess(file, FileAccess.WRITE)) {
acls.add(AclMethod.WRITE);
}
if (isAdmin) {