Can upload files

This commit is contained in:
2025-04-09 21:12:47 +02:00
parent 84e1c57dc9
commit 61a4ea62c6
24 changed files with 342 additions and 61 deletions

View File

@@ -17,7 +17,7 @@ pub struct NewTokenInfo {
pub right_account: bool,
pub right_movement: bool,
pub right_inbox: bool,
pub right_attachment: bool,
pub right_file: bool,
pub right_auth: bool,
}
@@ -38,7 +38,7 @@ pub async fn create(new_token: NewTokenInfo) -> anyhow::Result<Token> {
right_account: new_token.right_account,
right_movement: new_token.right_movement,
right_inbox: new_token.right_inbox,
right_attachment: new_token.right_attachment,
right_file: new_token.right_file,
};
let res = diesel::insert_into(tokens::table)