From 2002f2a9567c8448b3dae59bd98bbd41894ec631 Mon Sep 17 00:00:00 2001 From: Sagar Ghimire Date: Tue, 12 Dec 2023 11:34:22 +0545 Subject: [PATCH] [fix][xs]: Ignore checking for loggedin user --- ckanext/noanonaccess/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ckanext/noanonaccess/plugin.py b/ckanext/noanonaccess/plugin.py index 544cd65..bf5bf28 100644 --- a/ckanext/noanonaccess/plugin.py +++ b/ckanext/noanonaccess/plugin.py @@ -27,6 +27,10 @@ def identify(self): else: is_anonoumous_user = True + # if not anonymous user then no need to check + if not is_anonoumous_user: + return + current_path = tk.request.path def _get_blueprint_and_view_function():