* [pbs-devel] [PATCH backup] api: datastore: require allocate privilege for deletion
@ 2020-10-08 7:16 Thomas Lamprecht
2020-10-08 7:45 ` [pbs-devel] applied: " Dietmar Maurer
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Lamprecht @ 2020-10-08 7:16 UTC (permalink / raw)
To: pbs-devel
makes only sense if we allow addition of a datastore also just with
that privilege
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
---
based on the previous series which added this priv. to the create api path
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.
--
2.27.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-08 7:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-08 7:16 [pbs-devel] [PATCH backup] api: datastore: require allocate privilege for deletion Thomas Lamprecht
2020-10-08 7:45 ` [pbs-devel] applied: " Dietmar Maurer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox