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:
committed by
ashish singh
parent
30d0731e68
commit
f76d39eead
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user