calebasse / calebasse / lookups.py @ 99a62b84
1 |
|
---|---|
2 |
from ajax_select import LookupChannel |
3 |
from django.core.exceptions import PermissionDenied |
4 |
|
5 |
class CalebasseLookup(LookupChannel): |
6 |
|
7 |
def check_auth(self, request): |
8 |
if not request.user.is_authenticated(): |
9 |
raise PermissionDenied |
10 |
|