aio-libs / aio-libs/aiohttp-security
Permission lists - Restrict route to multiple permission levels.
Đang mở
- Ngôn ngữ chính
- Python
- Star
- 240
- Fork
- 70
- Merge trung bình
- 10 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.