small fix

This commit is contained in:
amentis 2024-01-05 11:41:57 +02:00
parent a3fb03b41b
commit 7ba374d844
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public class UserQuery extends QueryBase<UserEntity> {
QueryContext<UserRoleEntity, UUID> subQuery = this.applySubQuery(this.userRoleQuery, queryContext, UUID.class, userRoleEntityRoot -> userRoleEntityRoot.get(UserRoleEntity._userId));
predicates.add(queryContext.CriteriaBuilder.in(queryContext.Root.get(UserEntity._id)).value(subQuery.Query));
}
if (this.dmpAssociated){
if (this.dmpAssociated != null){
UUID userId;
if (this.userScope.isSet()) userId = this.userScope.getUserIdSafe();
else throw new MyNotFoundException("Only user scoped allowed");