]> git.proxmox.com Git - pve-access-control.git/commit
fix realm sync permissions
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 20 Dec 2021 10:31:15 +0000 (11:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Dec 2021 19:18:41 +0000 (20:18 +0100)
commit0c503211837009ab77ea35320450d7bc73c0578f
treed3da8aff5883f96632236892a5cde6cb79acec19
parent2974aa334536d57b6baf5032bec58ce2e06ae31c
fix realm sync permissions

The userid-* permission check variants work on
$param->{userid} directly which does not exist for this
call. Also, they work on the realm of the user being
checked, rather than the realm provided as parameter.

The result was that as non-root user this always failed
with the message "userid '' too short"

Fix this by making the check explicitly work like in the
description.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/Domains.pm