From e6374c5d61e4455b28293f1d337d0fab5ed68190 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Tue, 24 May 2022 12:31:26 -0400 Subject: [PATCH] adhoc group access should not require membership access via the the adhoc civi group should not require an associte membership, because the civi group should be authoritative on its own. this commit fixes that bug. --- lib/Auth/Source/FSFDrupalAuth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Auth/Source/FSFDrupalAuth.php b/lib/Auth/Source/FSFDrupalAuth.php index 8441a1b..21b1e7f 100644 --- a/lib/Auth/Source/FSFDrupalAuth.php +++ b/lib/Auth/Source/FSFDrupalAuth.php @@ -373,8 +373,8 @@ class FSFDrupalAuth extends \SimpleSAML\Module\core\Auth\UserPassBase if (($analyze_history($donation_query('query_nomination_process_donations', $donation_params)) || $compare_res($donation_query('query_nomination_process_gift_receipt', $gift_member_params), 1) - || $compare_res($donation_query('query_nomination_process_adhoc', $adhoc_params), 1) - ) && ($attributes['is_member'] == ['true'])) { + ) && ($attributes['is_member'] == ['true']) + || $compare_res($donation_query('query_nomination_process_adhoc', $adhoc_params), 1)) { $attributes['nomination_process'] = ['true']; } else { -- 2.25.1