From 3e48aa4d864de8cf0336cc38cfd35916d3bdf054 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 21 Apr 2010 22:31:12 +0000 Subject: Cleaned up some comments about group acl hooks. git-svn-id: http://code.elgg.org/elgg/trunk@5842 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod') diff --git a/mod/groups/start.php b/mod/groups/start.php index 9dfe74bf7..1ca0af9aa 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -426,11 +426,11 @@ if ($page_owner->isMember($loggedin)) { $returnvalue[$page_owner->group_acl] = elgg_echo('groups:group') . ': ' . $page_owner->name; - // remove friends access unset($returnvalue[ACCESS_FRIENDS]); } } else { - // remove all group access ids the user has + // if the user owns the group, remove all access collections manually + // this won't be a problem once the group itself owns the acl. $groups = elgg_get_entities_from_relationship(array( 'relationship' => 'member', 'relationship_guid' => $loggedin->getGUID(), @@ -580,13 +580,13 @@ return $invitations; } - + /** * Function to use on groups for access. It will house private, loggedin, public, * and the group itself. This is when you don't want other groups or channels in the access options available * Returns an array **/ - + function group_access_options($group){ $access_array = array(0 => 'private',1 => 'logged in users',2 => 'public',$group->group_acl => 'Group: ' . $group->name ); return $access_array; -- cgit v1.2.3