Skip to content

Commit 44ca79d

Browse files
committed
PES-2886: Update conditional to use strict comparison in packetery.php
1 parent 816206e commit 44ca79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packetery/packetery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ public function hookActionAdminControllerInitBefore(array $params)
18011801
break;
18021802
}
18031803

1804-
if (!$hasUserPermission && property_exists($controller, 'errors')) {
1804+
if ($hasUserPermission === false && property_exists($controller, 'errors')) {
18051805
$controller->errors[] = $this->l('You do not have permission to configure the Packeta module. Access denied.');
18061806
}
18071807
}

0 commit comments

Comments
 (0)