From a624aeceb58a40661e182ce7275cf7d8a3008740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Roumezin?= <94066559+RaphaelRoumezin@users.noreply.github.com> Date: Wed, 22 Jul 2026 16:41:28 +0200 Subject: [PATCH] fix: flag check bug in bitwise ops --- src/db/models/organization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/models/organization.rs b/src/db/models/organization.rs index 710d41f8..dd1c3d73 100644 --- a/src/db/models/organization.rs +++ b/src/db/models/organization.rs @@ -43,7 +43,7 @@ pub struct OrganizationCollectionSettings(i16); impl OrganizationCollectionSettings { pub fn get_flag(self, flag: OrgCollectionSetting) -> bool { - (self.0 | flag as i16) > 0 + (self.0 & flag as i16) > 0 } pub fn set_flag(&mut self, flag: OrgCollectionSetting, val: bool) {