[pve-devel] [PATCH access-control] compute_api_permissions: a storage has also permissions
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Jan 15 11:15:54 CET 2018
Fixes a problem where a non root at pam system administrator does not
sees the 'Permissions' tab for a storage in our WebUI.
Fixes commit a2c18811d33d7e09765a7b0f09bba47bc9523822
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
PVE/API2/AccessControl.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/API2/AccessControl.pm b/PVE/API2/AccessControl.pm
index 060e531..e48f0cb 100644
--- a/PVE/API2/AccessControl.pm
+++ b/PVE/API2/AccessControl.pm
@@ -140,7 +140,7 @@ my $compute_api_permission = sub {
my $priv_re_map = {
vms => qr/VM\.|Permissions\.Modify/,
access => qr/(User|Group)\.|Permissions\.Modify/,
- storage => qr/Datastore\./,
+ storage => qr/Datastore\.|Permissions\.Modify/,
nodes => qr/Sys\.|Permissions\.Modify/,
dc => qr/Sys\.Audit/,
};
--
2.11.0
More information about the pve-devel
mailing list