mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-24 23:26:49 +03:00
Implement poor man's admin panel
This commit is contained in:
1 parent
ce4fedf191
commit
a28caa33ef
12 files changed
+209
-71
No files matched your search
@@ -93,6 +93,13 @@ impl Folder {
|
||||
).execute(&**conn).and(Ok(()))
|
||||
}
|
||||
|
||||
pub fn delete_all_by_user(user_uuid: &str, conn: &DbConn) -> QueryResult<()> {
|
||||
for folder in Self::find_by_user(user_uuid, &conn) {
|
||||
folder.delete(&conn)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn find_by_uuid(uuid: &str, conn: &DbConn) -> Option<Self> {
|
||||
folders::table
|
||||
.filter(folders::uuid.eq(uuid))
|
||||
|
||||
Reference in new issue
Block a user