Fix quota get for non admin role user

There were minor issues with context object
manipulation which was raising exception during
db access with non admin role users, fixed it.

Change-Id: I8bf2b272b6feefc989a390e7b7869dbb58386534
Closes-Bug: #1610610
This commit is contained in:
Ashish Singh
2016-08-26 16:31:46 +05:30
committed by ashish singh
parent 30d0731e68
commit f76d39eead
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ def is_user_context(context):
return False
if context.is_admin:
return False
if not context.user or not context.tenant_id:
if not context.user or not context.project:
return False
return True