Fixes typo on Project authentication criteria. (Issue #90)

This commit is contained in:
gkolokythas 2019-06-10 18:03:54 +03:00
parent 399c2630af
commit 3db3456eb8
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public class ProjectDaoImpl extends DatabaseAccess<Project> implements ProjectDa
}
public QueryableList<Project> getAuthenticated(QueryableList<Project> query, UserInfo principal) {
query.where((builder, root) -> builder.or(builder.equal(root.get("creationUser"), principal), builder.equal(root.join("dmps").join("users", JoinType.LEFT).join("User", JoinType.LEFT).get("id"), principal.getId()))).distinct();
query.where((builder, root) -> builder.or(builder.equal(root.get("creationUser"), principal), builder.equal(root.join("dmps").join("users", JoinType.LEFT).join("user", JoinType.LEFT).get("id"), principal.getId()))).distinct();
return query;
}