From b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 28 Jan 2022 19:40:42 +0000 Subject: fix removing contacts from privacy groups --- Zotlabs/Lib/AccessList.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Lib/AccessList.php b/Zotlabs/Lib/AccessList.php index 03052fab5..026148c9f 100644 --- a/Zotlabs/Lib/AccessList.php +++ b/Zotlabs/Lib/AccessList.php @@ -160,8 +160,10 @@ class AccessList { return false; } - static function member_remove($uid, $name, $member) { - $gid = self::by_name($uid, $name); + static function member_remove($uid, $name, $member, $gid = 0) { + if (!$gid) { + $gid = self::by_name($uid, $name); + } if (!($uid && $gid && $member)) { return false; @@ -192,7 +194,8 @@ class AccessList { dbesc($member) ); if ($r) { - return true; // You might question this, but + return true; + // You might question this, but // we indicate success because the group member was in fact created // -- It was just created at another time } -- cgit v1.2.3