]> git.proxmox.com Git - pve-access-control.git/commit
rpcenv: improve user/token intersection
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 21 Jan 2022 10:23:36 +0000 (11:23 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 21 Jan 2022 13:21:04 +0000 (14:21 +0100)
commite8a0cee47bb477162f291e67144ea0c0df47f2ee
treec29f57cf37237625093c09edaf40f3b5fbb26b5c
parent92f571d9ff9579251d707bb18892a495f62700c6
rpcenv: improve user/token intersection

this could return undef for the propagation flag instead of 1/0, leading
to confusing displays of permission trees. all the actual checks using
the returned hash check for definedness anyway, so the actual
privileges checked and the displayed ones were not identical.

fixes: 7e8bcaa754432f084e53d9daf13c653a8777d88b
"roles()/permissions(): also return propagate flag"

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/RPCEnvironment.pm