Skip to content

Commit

Permalink
Fixed minor error
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangDeigele committed Oct 1, 2020
1 parent 9c848aa commit 6707ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckanext/grouphierarchy/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def get_allowable_parent_groups_g(group_id):
def get_allowable_children_groups_g(group_id):
if group_id:
group = model.Group.get(group_id)
if group == None:
return []
if group == None:
return []
allowable_parent_groups = group.get_children_group_hierarchy_g(type='group')
else:
allowable_parent_groups = model.Group.all(
Expand Down

0 comments on commit 6707ae0

Please sign in to comment.