From a66e7920dc426c91284ade5afa02e60177642eaa Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 18 Dec 2019 10:52:45 +0100 Subject: [PATCH] src/api2/config/datastore.rs: set protected flags for create/delete API --- src/api2/config/datastore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api2/config/datastore.rs b/src/api2/config/datastore.rs index 5e1c995b..7df65476 100644 --- a/src/api2/config/datastore.rs +++ b/src/api2/config/datastore.rs @@ -35,7 +35,7 @@ pub const POST: ApiMethod = ApiMethod::new( ("path", false, &StringSchema::new("Directory path. The directory path is created if it does not already exist.").schema()), ], ) -); +).protected(true); fn create_datastore( param: Value, @@ -75,7 +75,7 @@ pub const DELETE: ApiMethod = ApiMethod::new( ("name", false, &DATASTORE_SCHEMA), ], ) -); +).protected(true); fn delete_datastore( param: Value,