Skip to content

Commit

Permalink
tx
Browse files Browse the repository at this point in the history
  • Loading branch information
leontiadZen committed Oct 30, 2023
1 parent 9673bd2 commit 3567d54
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gotham-server/src/public_gotham.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ pub struct PublicGotham {
}
pub struct Authorizer {}

impl Txauthorization for Authorizer {
/// the granted function implements the logic of tx authorization. If no tx authorization is needed the function returns always true
fn granted(&self) -> Result<bool, DatabaseError> {
Ok(true)
}
}
fn get_settings_as_map() -> HashMap<String, String> {
let config_file = include_str!("../Settings.toml");
let mut settings = config::Config::default();
Expand Down Expand Up @@ -95,6 +89,10 @@ impl Db for PublicGotham {
None => Ok(None),
}
}
/// the granted function implements the logic of tx authorization. If no tx authorization is needed the function returns always true
fn granted(&self, message: &str, customer_id: &str) -> Result<bool, DatabaseError> {
Ok(true)
}
async fn has_active_share(&self, _user_id: &str) -> Result<bool, String> {
Ok(false)
}
Expand Down

0 comments on commit 3567d54

Please sign in to comment.