Skip to content

Commit

Permalink
#1503 dupicates on upsync: assignment/unassignment of groups
Browse files Browse the repository at this point in the history
  • Loading branch information
desperateCoder committed Nov 24, 2024
1 parent 4cc50e0 commit f2b164c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ public void updateUser(long accountId, User user, boolean setStatus) {
@WorkerThread
public UserForAssignment getUserForAssignmentDirectly(long localUserId) {
SimpleSQLiteQuery query = new SimpleSQLiteQuery(
"SELECT case when uig.memberId is null then 0 else 1 end as type, u.uid as userId " +
"SELECT acl.type, u.uid as userId " +
"FROM User u " +
"left join UserInGroup uig on uig.groupId = u.localId " +
"left join AccessControl acl on acl.userId = u.localId " +
" WHERE u.localId = ? LIMIT 1",
new Object[]{localUserId});
return db.getUserInGroupDao().getUserForAssignment(query);
Expand Down

0 comments on commit f2b164c

Please sign in to comment.