diff options
author | Mario <mario@mariovavti.com> | 2022-01-28 19:40:42 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-28 19:40:42 +0000 |
commit | b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010 (patch) | |
tree | ef341ce525f8ad887a85f31bac71a7782b8857da /Zotlabs | |
parent | c4dd8885e43441e40d05f17bc8ef1726f15c478d (diff) | |
download | volse-hubzilla-b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010.tar.gz volse-hubzilla-b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010.tar.bz2 volse-hubzilla-b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010.zip |
fix removing contacts from privacy groups
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/AccessList.php | 9 |
1 files changed, 6 insertions, 3 deletions
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 } |