Skip to content

Commit

Permalink
[#2457] Fix SQLAlchemy boolean filter
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 7, 2016
1 parent 3ef2c31 commit 1f0a45c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/logic/action/get.py
Expand Up @@ -631,7 +631,6 @@ def organization_list_for_user(context, data_dict):
'''
model = context['model']

if data_dict.get('id'):
user_obj = model.User.get(data_dict['id'])
if not user_obj:
Expand All @@ -644,7 +643,7 @@ def organization_list_for_user(context, data_dict):
sysadmin = authz.is_sysadmin(user)

orgs_q = model.Session.query(model.Group) \
.filter(model.Group.is_organization is True) \
.filter(model.Group.is_organization == True) \
.filter(model.Group.state == 'active')

if sysadmin:
Expand Down

0 comments on commit 1f0a45c

Please sign in to comment.