aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-21 22:31:12 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-21 22:31:12 +0000
commit3e48aa4d864de8cf0336cc38cfd35916d3bdf054 (patch)
tree582e48511283a7b6cf87e9e94ccb81c6b300e64e
parent3c3f717d3008c5bf4c22c53b5421d2f15bd87db5 (diff)
downloadelgg-3e48aa4d864de8cf0336cc38cfd35916d3bdf054.tar.gz
elgg-3e48aa4d864de8cf0336cc38cfd35916d3bdf054.tar.bz2
Cleaned up some comments about group acl hooks.
git-svn-id: http://code.elgg.org/elgg/trunk@5842 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/groups/start.php8
1 files changed, 4 insertions, 4 deletions
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;