You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to visit /dashboard as a non-logged in user, the user should be sent to the login page.
Please describe the actual behaviour
An internal server error occurs.
File "/usr/lib/ckan/default/src/ckan/ckan/views/dashboard.py", line 99, in index
u'id': g.userobj.id,
AttributeError: 'NoneType' object has no attribute 'id'
When a non-logged-in user visits /dashboard, errors happen. This PR
stops those errors happening by ensuring at the start of the request
to the dashboard view that there is a logged in user.
This fixes#4305
When a non-logged-in user visits /dashboard, errors happen. This PR
stops those errors happening by ensuring at the start of the request
to the dashboard view that there is a logged in user.
This fixes#4305
fostermh
pushed a commit
to cioos-siooc/ckan
that referenced
this issue
Sep 10, 2021
When a non-logged-in user visits /dashboard, errors happen. This PR
stops those errors happening by ensuring at the start of the request
to the dashboard view that there is a logged in user.
This fixesckan#4305
CKAN Version if known (or site URL)
2.8.0
Please describe the expected behaviour
When attempting to visit /dashboard as a non-logged in user, the user should be sent to the login page.
Please describe the actual behaviour
An internal server error occurs.
What steps can be taken to reproduce the issue?
Visit http://demo.ckan.org/dashboard when not logged in
The text was updated successfully, but these errors were encountered: