]> git.proxmox.com Git - pve-access-control.git/blobdiff - src/test/perm-test8.pl
permissions: fix token/user priv intersection
[pve-access-control.git] / src / test / perm-test8.pl
index 83ca1f26e76672c9017d793e8a66b02fe44b9ed9..5dab6c68d1a2ac6e64054d47859785ccf5ccd12f 100644 (file)
@@ -63,7 +63,7 @@ check_roles('max@pve!token', '/vms/200', 'storage_manager');
 check_roles('max@pve!token2', '/vms/200', 'customer');
 
 # check intersection -> token has Administrator, but user only vm_admin
-check_permission('max@pve!token2', '/vms/300', 'Permissions.Modify,VM.Allocate,VM.Audit,VM.Console');
+check_permission('max@pve!token2', '/vms/300', 'Permissions.Modify,VM.Allocate,VM.Audit,VM.Console,VM.PowerMgmt');
 
 print "all tests passed\n";