From 3806ef45bac1412c6d62e03ab691d9bfeb70b565 Mon Sep 17 00:00:00 2001 From: Djamel Chibane <20502173+devletech@users.noreply.github.com> Date: Mon, 25 Nov 2024 14:19:50 +0100 Subject: [PATCH] fixed: If statement gives wrong result. --- library/Episciences/User.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/library/Episciences/User.php b/library/Episciences/User.php index f3e838f8..95cf8b4b 100644 --- a/library/Episciences/User.php +++ b/library/Episciences/User.php @@ -1388,12 +1388,13 @@ public function isNotAllowedToDeclareConflict(): bool $this->hasRole(Episciences_Acl::ROLE_ADMIN) ) && !( - $this->hasRole(Episciences_Acl::ROLE_SECRETARY) && - $this->hasRole(Episciences_Acl::ROLE_CHIEF_EDITOR) && - $this->hasRole(Episciences_Acl::ROLE_GUEST_EDITOR) && - $this->hasRole(Episciences_Acl::ROLE_EDITOR) && + $this->hasRole(Episciences_Acl::ROLE_SECRETARY) || + $this->hasRole(Episciences_Acl::ROLE_CHIEF_EDITOR) || + $this->hasRole(Episciences_Acl::ROLE_GUEST_EDITOR) || + $this->hasRole(Episciences_Acl::ROLE_EDITOR) || $this->hasRole(Episciences_Acl::ROLE_COPY_EDITOR) ); + }