mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-25 02:46:49 +02:00
Delete folder mappings when deleting folders and make sure that we can't change a ciphers owner when created
This commit is contained in:
1 parent
85bc5514f8
commit
92236394e6
4 files changed
+39
-35
No files matched your search
@@ -123,4 +123,10 @@ impl FolderCipher {
|
||||
.filter(folders_ciphers::cipher_uuid.eq(cipher_uuid))
|
||||
.first::<Self>(&**conn).ok()
|
||||
}
|
||||
|
||||
pub fn find_by_folder(folder_uuid: &str, conn: &DbConn) -> Vec<Self> {
|
||||
folders_ciphers::table
|
||||
.filter(folders_ciphers::folder_uuid.eq(folder_uuid))
|
||||
.load::<Self>(&**conn).expect("Error loading folders")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user