forked from Deuxfleurs/garage
Push update
This commit is contained in:
parent
3bc4d57a0f
commit
011ff87b5f
1 changed files with 1 additions and 0 deletions
|
@ -166,6 +166,7 @@ impl AdminRpcHandler {
|
||||||
|
|
||||||
if let BucketState::Present(state) = bucket.state.get_mut() {
|
if let BucketState::Present(state) = bucket.state.get_mut() {
|
||||||
state.website.update(query.allow);
|
state.website.update(query.allow);
|
||||||
|
self.garage.bucket_table.insert(&bucket).await?;
|
||||||
let msg = if query.allow {
|
let msg = if query.allow {
|
||||||
format!("Website access allowed for {}", &query.bucket)
|
format!("Website access allowed for {}", &query.bucket)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue