Commit 2ab92b11 authored by mpotter's avatar mpotter Committed by amitaibu

Issue #2411041 by hefox, mpotter, filsterjisah: Group manager always given...

Issue #2411041 by hefox, mpotter, filsterjisah: Group manager always given default default role as og_is_member arguments wrong
parent 841cc25e
......@@ -874,7 +874,7 @@ function og_entity_update($entity, $entity_type) {
}
list($id, , $bundle) = entity_extract_ids($entity_type, $entity);
if (!empty($entity->uid) && !og_is_member($entity_type, $entity, 'user', $entity->uid)) {
if (!empty($entity->uid) && !og_is_member($entity_type, $id, 'user', $entity->uid)) {
// Subscribe the group manager, in case the owner changed.
og_group($entity_type, $id, array('entity' => $entity->uid));
// Assign roles to group manager.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment