Unverified Commit 81b89232 authored by alesr's avatar alesr Committed by GitHub

Merge pull request #276 from jorrit/patch-2

Remove duplicate checks in og_ui_user_access_group
parents 5abcd7e6 86038a91
......@@ -328,12 +328,7 @@ function og_ui_user_access_group($perm, $group_type, $gid) {
return FALSE;
$entity_info = entity_get_info($group_type);
if (!$group_type || !$entity_info) {
// Not a valid entity type.
return FALSE;
return og_is_group($group_type, $group) && og_user_access($group_type, $gid, $perm);
return og_user_access($group_type, $gid, $perm);
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