Skip to content

Commit

Permalink
[improve][xs] added extra statement for resource visibility filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
sagargg committed Dec 9, 2021
1 parent 919158d commit b53aa01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/nhs/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_latest_resources():
and_(model.Package.state == 'active',
model.Package.private == False,
model.Resource.state == 'active',
text("resource.extras ILIKE \'%s\'" % (private_resource_dict))
text("resource.extras ILIKE \'%s\' or resource.extras ILIKE \'%s\' " % (private_resource_dict, '%{level: public}%' ))
)
).order_by("latest DESC").limit(5)
q_result = model.Session.execute(sql).fetchall()
Expand Down

0 comments on commit b53aa01

Please sign in to comment.