]> git.proxmox.com Git - pve-access-control.git/commitdiff
acl: check path: spell param out
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Apr 2021 09:48:49 +0000 (11:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Apr 2021 09:48:52 +0000 (11:48 +0200)
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>
PVE/AccessControl.pm

index 4ef1080d10b5965faf68587c34086c0afd070ed1..730ef680bf0eb8ca3dc8b54a7b32fe9484b6d014 100644 (file)
@@ -930,7 +930,8 @@ sub normalize_path {
 }
 
 sub check_path {
-    return shift =~ m!^(
+    my ($path) = @_;
+    return $path =~ m!^(
        /
        |/access
        |/access/groups