Commit d4f40264 authored by geek-merlin's avatar geek-merlin Committed by alesr

#2057025 OG subscribe / join page not working with field permissions on group field.

parent d16275a0
......@@ -36,7 +36,7 @@ function og_ui_subscribe($entity_type, $etid, $field_name = NULL) {
$account = user_load($user->uid);
if (empty($field_name)) {
$field_name = og_get_best_group_audience_field('user', $account, $entity_type, $bundle);
$field_name = og_get_best_group_audience_field('user', $account, $entity_type, $bundle, TRUE);
if (empty($field_name)) {
// User entity has no group audience field.
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