aio-libs / aio-libs/aiohttp-security

Permission lists - Restrict route to multiple permission levels.

Đang mở
#304 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.