From 9dc03345ffe6eebb60f7e0a69539f21c52048dd6 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 7 Jul 2008 10:12:20 +0000 Subject: Closes #120 git-svn-id: https://code.elgg.org/elgg/trunk@1306 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/group.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engine/lib/group.php') diff --git a/engine/lib/group.php b/engine/lib/group.php index 134206b02..5524461f5 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -147,6 +147,18 @@ return get_group_members($this->getGUID(), $limit, $offset, 0 , $count); } + /** + * Returns whether the current group is public membership or not. + * @return bool + */ + public function isPublicMembership() + { + if ($this->membership == 2) + return true; + + return false; + } + /** * Return whether a given user is a member of this group or not. * -- cgit v1.2.3