Skip to content

Commit

Permalink
fix permissions for public register creation
Browse files Browse the repository at this point in the history
  • Loading branch information
loziniak committed Sep 4, 2023
1 parent d3c0dd9 commit c024b2f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sn_client/src/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@ impl ClientRegister {

/// Create a new public Register (Anybody can write to it) and send it so the Network.
/// This will optionally verify the Register was stored on the network.
pub async fn create_public_online(
client: Client,
meta: XorName,
verify_store: bool,
) -> Result<Self> {
let mut reg = Self::create_register(client, meta, Permissions::new_owner_only())?;
pub async fn create_public_online(client: Client, meta: XorName, verify_store: bool) -> Result<Self> {
let mut reg = Self::create_register(client, meta, Permissions::new_anyone_can_write())?;
reg.sync(verify_store).await?;
Ok(reg)
}
Expand Down

0 comments on commit c024b2f

Please sign in to comment.