Skip to content

Commit

Permalink
#1503 dupicates on upsync: assignment/unassignment of groups -> make …
Browse files Browse the repository at this point in the history
…it more failsafe
  • Loading branch information
desperateCoder committed Nov 24, 2024
1 parent f2b164c commit 3e7a172
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public void updateUser(long accountId, User user, boolean setStatus) {
@WorkerThread
public UserForAssignment getUserForAssignmentDirectly(long localUserId) {
SimpleSQLiteQuery query = new SimpleSQLiteQuery(
"SELECT acl.type, u.uid as userId " +
"SELECT case when acl.type is null then 0 else 1 end as type, u.uid as userId " +
"FROM User u " +
"left join AccessControl acl on acl.userId = u.localId " +
" WHERE u.localId = ? LIMIT 1",
Expand Down

0 comments on commit 3e7a172

Please sign in to comment.