diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-19 18:29:31 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-19 18:29:31 +0000 |
commit | fde18e8ea5d0eda4388a0085fd6656ea56d33af6 (patch) | |
tree | 7915938e35ac5f1138efe377eabcd893b762ae6e /mod | |
parent | c23db20804aeacf6013e7fe31f1fc3e14d74fb5d (diff) | |
download | elgg-fde18e8ea5d0eda4388a0085fd6656ea56d33af6.tar.gz elgg-fde18e8ea5d0eda4388a0085fd6656ea56d33af6.tar.bz2 |
For now, the group membership page is protected, although eventually this should get its own profile dropdown menu. Fixes #605
git-svn-id: https://code.elgg.org/elgg/trunk@2830 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/membership.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/groups/membership.php b/mod/groups/membership.php index fc0b5ab54..abb358f40 100644 --- a/mod/groups/membership.php +++ b/mod/groups/membership.php @@ -12,10 +12,14 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ gatekeeper();
+
$limit = get_input("limit", 10);
$offset = get_input("offset", 0);
- $title = sprintf(elgg_echo("groups:yours"),page_owner_entity()->name);
+ if (page_owner() == $_SESSION['user']->guid) {
+ $title = elgg_echo("groups:yours");
+ } else $title = sprintf(elgg_echo("groups:owned"),page_owner_entity()->name);
// Get objects
$area2 = elgg_view_title($title);
|