Unverified Commit 5abcd7e6 authored by alesr's avatar alesr Committed by GitHub

Merge pull request #320 from Xilis/7.x-2.x

og_ui edit_membership_form disable checkboxes if member is not active.
parents 8f3d1b96 eb5776af
......@@ -311,6 +311,7 @@ function og_ui_edit_membership($form, &$form_state, $group_type, $gid, $og_membe
'#options' => $og_roles,
'#title' => t('Roles'),
'#default_value' => array_keys(og_get_user_roles($group_type, $gid, $account->uid)),
'#disabled' => $og_membership->state != OG_STATE_ACTIVE,
);
}
......
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