From 92dd02aaf6905851cd16f86cdf8855f7dcd0d8c8 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 8 Oct 2020 09:16:02 +0200 Subject: [PATCH] api: datastore: require allocate privilege for deletion makes only sense if we allow addition of a datastore also just with that privilege Signed-off-by: Thomas Lamprecht --- src/api2/config/datastore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api2/config/datastore.rs b/src/api2/config/datastore.rs index 140af833..5ab637ce 100644 --- a/src/api2/config/datastore.rs +++ b/src/api2/config/datastore.rs @@ -375,7 +375,7 @@ pub fn update_datastore( }, }, access: { - permission: &Permission::Privilege(&["datastore", "{name}"], PRIV_DATASTORE_MODIFY, false), + permission: &Permission::Privilege(&["datastore", "{name}"], PRIV_DATASTORE_ALLOCATE, false), }, )] /// Remove a datastore configuration.