a08880db17ada4034479da3e7067a893039c4197
[wolnelektury.git] / src / club / permissions.py
1 from rest_framework.permissions import BasePermission
2 from .models import Membership
3
4
5 class IsClubMember(BasePermission):
6     def has_permission(self, request, view):
7         return Membership.is_active_for(request.user)