Push update
This commit is contained in:
parent
3bc4d57a0f
commit
011ff87b5f
@ -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 New Issue
Block a user