aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 10:23:27 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-04 10:23:27 +0000
commit6172577d65ed2fa82c07c92c032e7aa727ffabeb (patch)
treef1254880bae46ddd270794ea59fa77b342e2981c /mod/groups/start.php
parent73047ab147adde87e34ca356f7c92f1d6ccc6fea (diff)
downloadelgg-6172577d65ed2fa82c07c92c032e7aa727ffabeb.tar.gz
elgg-6172577d65ed2fa82c07c92c032e7aa727ffabeb.tar.bz2
The 'manage join requests' link doesn't show up if the current group doesn't have public membership.
git-svn-id: https://code.elgg.org/elgg/trunk@3052 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index fd2eecdf9..e8ef1af11 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -198,7 +198,8 @@
if ($page_owner->canEdit()) {
add_submenu_item(elgg_echo('groups:edit'),$CONFIG->wwwroot . "mod/groups/edit.php?group_guid=" . $page_owner->getGUID(), '1groupsactions');
add_submenu_item(elgg_echo('groups:invite'),$CONFIG->wwwroot . "mod/groups/invite.php?group_guid={$page_owner->getGUID()}", '1groupsactions');
- add_submenu_item(elgg_echo('groups:membershiprequests'),$CONFIG->wwwroot . "mod/groups/membershipreq.php?group_guid={$page_owner->getGUID()}", '1groupsactions');
+ if (!$page_owner->isPublicMembership())
+ add_submenu_item(elgg_echo('groups:membershiprequests'),$CONFIG->wwwroot . "mod/groups/membershipreq.php?group_guid={$page_owner->getGUID()}", '1groupsactions');
}
if ($page_owner->isMember($_SESSION['user'])) {
if ($page_owner->getOwner() != $_SESSION['guid'])