aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/group.php
diff options
context:
space:
mode:
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