mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 04:28:09 +03:00
Implement deleting Organization
This commit is contained in:
1 parent
726ba36e5b
commit
941747f9e8
4 files changed
+71
-22
No files matched your search
@@ -145,6 +145,13 @@ impl Cipher {
|
||||
).execute(&**conn).and(Ok(()))
|
||||
}
|
||||
|
||||
pub fn delete_all_by_organization(org_uuid: &str, conn: &DbConn) -> QueryResult<()> {
|
||||
for cipher in Self::find_by_org(org_uuid, &conn) {
|
||||
cipher.delete(&conn)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn move_to_folder(&self, folder_uuid: Option<String>, user_uuid: &str, conn: &DbConn) -> Result<(), &str> {
|
||||
match self.get_folder_uuid(&user_uuid, &conn) {
|
||||
None => {
|
||||
|
||||
Reference in new issue
Block a user