From 91c30089a7ca5c89a57dd2e7e1f53ed1e6aa650c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 19 Apr 2021 11:48:49 +0200 Subject: [PATCH] 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 --- PVE/AccessControl.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index 4ef1080..730ef68 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -930,7 +930,8 @@ sub normalize_path { } sub check_path { - return shift =~ m!^( + my ($path) = @_; + return $path =~ m!^( / |/access |/access/groups