* [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
* [pbs-devel] applied: [PATCH backup] api: datastore: require allocate privilege for deletion
2020-10-08 7:16 [pbs-devel] [PATCH backup] api: datastore: require allocate privilege for deletion Thomas Lamprecht
@ 2020-10-08 7:45 ` Dietmar Maurer
0 siblings, 0 replies; 2+ messages in thread
From: Dietmar Maurer @ 2020-10-08 7:45 UTC (permalink / raw)
To: Proxmox Backup Server development discussion, Thomas Lamprecht
applied
^ 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal