| from rest_framework import permissions | |
| class IsActiveValidator(permissions.BasePermission): | |
| """Only active validators can perform verification actions.""" | |
| def has_permission(self, request, view): | |
| return ( | |
| request.user.is_authenticated | |
| and hasattr(request.user, "validator_node") | |
| and request.user.validator_node.status == "active" | |
| ) | |
Xet Storage Details
- Size:
- 395 Bytes
- Xet hash:
- 96546d91af82f9142e4f1c1743f83950b0645015290532b02b16a669aa382001
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.