def is_in_scope(endpoint): # 通过数据库查询出该用户的所有权限 permissions = [''] if endpoint in permissions: return True else: return False