mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-11-05 02:58:36 +02:00
Do not show organization stuff to not accepted user
This commit is contained in:
1 parent
03172a6cd7
commit
692ed81306
3 files changed
+10
-2
No files matched your search
@@ -268,6 +268,7 @@ impl UserOrganization {
|
||||
pub fn find_by_user(user_uuid: &str, conn: &DbConn) -> Vec<Self> {
|
||||
users_organizations::table
|
||||
.filter(users_organizations::user_uuid.eq(user_uuid))
|
||||
.filter(users_organizations::status.eq(UserOrgStatus::Confirmed as i32))
|
||||
.load::<Self>(&**conn).unwrap_or(vec![])
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user