diff options
-rw-r--r-- | src/database/db-interface.vala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/database/db-interface.vala b/src/database/db-interface.vala index f2d3e87..840f0a8 100644 --- a/src/database/db-interface.vala +++ b/src/database/db-interface.vala @@ -147,7 +147,16 @@ public struct UserInfo { if(joined_at != x.joined_at) return false; if(disabled != x.disabled) return false; if(hidden != x.hidden) return false; - if(rfid != x.rfid) return false; + + /* check if both objects contain the same RFIDs */ + foreach(var id in rfid) { + if(!(id in x.rfid)) + return false; + } + foreach(var id in x.rfid) { + if(!(id in rfid)) + return false; + } return true; } |