acl: check path: spell param out

we normally use shift only in closures, to keep them short, as a
module method this should rather use our standard style.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-04-19 11:48:49 +02:00
parent 20c60513b2
commit 91c30089a7

View File

@ -930,7 +930,8 @@ sub normalize_path {
} }
sub check_path { sub check_path {
return shift =~ m!^( my ($path) = @_;
return $path =~ m!^(
/ /
|/access |/access
|/access/groups |/access/groups