]> git.proxmox.com Git - pve-access-control.git/commit - src/test/perm-test8.pl
permissions: fix token/user priv intersection
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 3 Jun 2022 11:50:48 +0000 (13:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 3 Jun 2022 11:53:02 +0000 (13:53 +0200)
commit0716a56be3fc8be775a4afc818e8cad6727dc91c
tree61a41b772be92921374beb7ff08bc0241979f2d9
parentb55e33f4e4bd842b3ed0b8072129e80bc5baccd8
permissions: fix token/user priv intersection

the token/user priv intersection could only honored user privs that had
the propagation flag set, reducing the scope of the token more than
intended.

the pre-existing test case actually triggered the broken behaviour, but
the expected value matched it so it was not noticed.

Fixes: e8a0cee47bb477162f291e67144ea0c0df47f2ee "rpcenv: improve user/token intersection"
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/RPCEnvironment.pm
src/test/perm-test8.pl