def is_user_context(context):
 if (not context):
  return False
 if context.is_admin:
  return False
 if ((not context.user_id) or (not context.project_id)):
  return False
 return True

def is_user_context ( context ) : if ( not context ) : return False if context . is_admin : return False if ( ( not context . user_id ) or ( not context . project_id ) ) : return False return True
indicates if the request context is a normal user .