Skip to content

Commit

Permalink
Merge pull request #384 from keitaroinc/fix/notifications-to-active-s…
Browse files Browse the repository at this point in the history
…ysadmins-only

Retrieves only active sysadmin users.
  • Loading branch information
bozarevskaandrea committed May 20, 2020
2 parents 92a8e24 + 66a4a5b commit 4335bc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckanext/knowledgehub/logic/action/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,7 @@ def _find_sysadmins():
'''
q = model.Session.query(model.User)
q = q.filter(model.user_table.c.sysadmin == True)
q = q.filter(model.user_table.c.state == 'active')
sysadmins = []
for user in q.all():
sysadmins.append(user)
Expand Down

0 comments on commit 4335bc4

Please sign in to comment.