aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/group.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-07 10:12:20 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-07 10:12:20 +0000
commit9dc03345ffe6eebb60f7e0a69539f21c52048dd6 (patch)
treeda6fede5185bd56474a5099d9b20b98a9312286e /engine/lib/group.php
parent731660adbc2702f4566f8b5d106e01ccd722ab1c (diff)
downloadelgg-9dc03345ffe6eebb60f7e0a69539f21c52048dd6.tar.gz
elgg-9dc03345ffe6eebb60f7e0a69539f21c52048dd6.tar.bz2
Closes #120
git-svn-id: https://code.elgg.org/elgg/trunk@1306 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r--engine/lib/group.php12
1 files changed, 12 insertions, 0 deletions
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
@@ -148,6 +148,18 @@
}
/**
+ * 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.
*
* @param ElggUser $user The user