Commit 3d3fd026 authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas
Browse files

userquota to handle null request.user

parent b95fdf1f
......@@ -245,7 +245,7 @@ def user_quota(request):
settings.NETWORKS_USER_QUOTA.get(request.user_uniq,
settings.MAX_NETWORKS_PER_USER)
if 'usage' in request.user:
if request.user and 'usage' in request.user:
quota = dict(zip([q['name'] for q in request.user['usage']],
request.user['usage']))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment