aio-libs / aio-libs/aiohttp-security
Permission lists - Restrict route to multiple permission levels.
未关闭
- 主要语言
- Python
- 星标
- 240
- 派生
- 70
- 平均合并
- 10 分钟
- 30 天内合并 PR
- 3
描述
I will now begin work on a PR to add support for restricting routes to multiple permissions like this:
```
async def protected_page(self, request):
await check_permission(request, ['protected', 'level1', 'level2'])
response = web.Response(body=b'You are on protected page')
return response
```
Discussion welcome.
贡献指南
评估
这个 Issue 还没有评估数据。