fnp
/
wolnelektury.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Translations.
[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)