Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix anon views #8

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.1.3 - 2024-04-26

New features:

Bug fixes:
- Fix anon visits [#8](https://github.com/okfn/ckanext-announcements/pull/8)

## 0.1.2 - 2024-04-26

New features:
Expand Down
2 changes: 1 addition & 1 deletion ckanext/announcements/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__VERSION__ = "0.1.2"
__VERSION__ = "0.1.3"
2 changes: 1 addition & 1 deletion ckanext/announcements/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def index():
"""Get the Announcements home page"""
if not toolkit.c.userobj.sysadmin:
if not toolkit.c.userobj or not toolkit.c.userobj.sysadmin:
base.abort(403, ("Need to be system administrator to administer"))

display_timezone = toolkit.config.get("ckan.display_timezone", "UTC")
Expand Down
Loading