mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-07 12:28:05 +00:00
add VM.Copy priviledge
And a new role called PVETemplateUser
This commit is contained in:
parent
b78ce7c252
commit
ff4b223563
@ -364,6 +364,7 @@ my $privgroups = {
|
|||||||
'VM.Config.HWType',
|
'VM.Config.HWType',
|
||||||
'VM.Config.Options', # covers all other things
|
'VM.Config.Options', # covers all other things
|
||||||
'VM.Allocate',
|
'VM.Allocate',
|
||||||
|
'VM.Copy',
|
||||||
'VM.Migrate',
|
'VM.Migrate',
|
||||||
'VM.Monitor',
|
'VM.Monitor',
|
||||||
'VM.Snapshot',
|
'VM.Snapshot',
|
||||||
@ -457,6 +458,8 @@ sub create_roles {
|
|||||||
$special_roles->{"PVEAuditor"}->{$p} = 1;
|
$special_roles->{"PVEAuditor"}->{$p} = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$special_roles->{"PVETemplateUser"} = { 'VM.Copy' => 1, 'VM.Audit' => 1 };
|
||||||
};
|
};
|
||||||
|
|
||||||
create_roles();
|
create_roles();
|
||||||
|
1
README
1
README
@ -82,6 +82,7 @@ privileges:
|
|||||||
VM.Console: console access to VM
|
VM.Console: console access to VM
|
||||||
VM.Monitor: access to VM monitor (kvm)
|
VM.Monitor: access to VM monitor (kvm)
|
||||||
VM.Backup: backup/restore VMs
|
VM.Backup: backup/restore VMs
|
||||||
|
VM.Copy: Copy/Clone VM or VM template
|
||||||
VM.Audit: view VM config
|
VM.Audit: view VM config
|
||||||
|
|
||||||
VM.Config.XXX: modify VM config
|
VM.Config.XXX: modify VM config
|
||||||
|
Loading…
Reference in New Issue
Block a user