aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/start.php8
-rw-r--r--mod/profile/start.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 7fb7205b0..88cdef8d1 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -211,8 +211,8 @@
*/
function groups_create_event_listener($event, $object_type, $object)
{
- if (($event == 'create') && ($object_type == 'group') && ($object instanceof ElggGroup))
- {
+ //if (($event == 'create') && ($object_type == 'group') && ($object instanceof ElggGroup))
+ //{
$group_id = create_access_collection(elgg_echo('groups:group') . ": " . $object->name);
if ($group_id)
{
@@ -220,7 +220,7 @@
}
else
return false;
- }
+ //}
return true;
}
@@ -283,7 +283,7 @@
$group = $object['group'];
$user = $object['user'];
$acl = $group->group_acl;
-
+
add_user_to_access_collection($user->guid, $acl);
return true;
diff --git a/mod/profile/start.php b/mod/profile/start.php
index e8e8b57dd..55535f492 100644
--- a/mod/profile/start.php
+++ b/mod/profile/start.php
@@ -60,7 +60,7 @@
// Extend context menu with admin links
if (isadminloggedin())
{
- extend_view('profile/menu/links','profile/menu/adminlinks');
+ extend_view('profile/menu/links','profile/menu/adminlinks',0);
}
}