From 8c0d27dab3627d7ad057f781b917963d96555ef2 Mon Sep 17 00:00:00 2001 From: Ashwin Thanaraj <37061471+ashwin1111@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:16:27 +0530 Subject: [PATCH] feat: Add few more loggers in permission area (#685) --- apps/workspaces/permissions.py | 2 ++ requirements.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/workspaces/permissions.py b/apps/workspaces/permissions.py index 40c99e3d..ed6a893f 100644 --- a/apps/workspaces/permissions.py +++ b/apps/workspaces/permissions.py @@ -35,6 +35,8 @@ def has_permission(self, request, view): workspace_id = str(view.kwargs.get('workspace_id')) user = request.user workspace_users = cache.get(workspace_id) + logger.info(f'User: {user}') + logger.info(f'Workspace users: {workspace_users}') if workspace_users: return self.validate_and_cache(workspace_users, user, workspace_id, request.data) diff --git a/requirements.txt b/requirements.txt index 4e372123..0c001b29 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,7 +23,7 @@ future==0.18.2 fyle==0.37.2 fyle-accounting-mappings==1.34.8 fyle-integrations-platform-connector==1.39.1 -fyle-rest-auth==1.7.3 +fyle-rest-auth==1.7.4 flake8==4.0.1 gevent==23.9.1 gunicorn==20.1.0