Skip to content

Commit

Permalink
feat: Add few more loggers in permission area (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Oct 16, 2024
1 parent 8f07dc0 commit 2fac819
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/workspaces/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fac819

Please sign in to comment.