From 6416b67c6387654ec9a2e6a43f9a289893f829fc Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Tue, 25 Jan 2022 14:06:09 +0100 Subject: [PATCH] fix admin access for customer in invoice module (#3095) --- src/Constants.php | 4 ++-- src/Voter/CustomerVoter.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Constants.php b/src/Constants.php index b2c52fcf..c2cdd1f6 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -17,11 +17,11 @@ class Constants /** * The current release version */ - public const VERSION = '1.17'; + public const VERSION = '1.17.1'; /** * The current release: major * 10000 + minor * 100 + patch */ - public const VERSION_ID = 11700; + public const VERSION_ID = 11701; /** * The current release status, either "stable" or "dev" */ diff --git a/src/Voter/CustomerVoter.php b/src/Voter/CustomerVoter.php index 5c8bc45f..dedcd832 100644 --- a/src/Voter/CustomerVoter.php +++ b/src/Voter/CustomerVoter.php @@ -89,6 +89,10 @@ final class CustomerVoter extends Voter } } + if ($user->canSeeAllData()) { + return true; + } + return false; }