bugfix: add permissions

This commit is contained in:
Matthieu Fesselier 2019-01-31 18:03:13 +07:00
parent fe98c26b5a
commit 41f15006db

View File

@ -2,9 +2,9 @@
from django.conf.urls import url
from .models import Notification, Subscription
from djangoldp.views import LDPViewSet
#from djangoldp.permissions import InboxPermissions
from djangoldp.permissions import InboxPermissions
urlpatterns = [
url(r'^notifications/', LDPViewSet.urls(model=Notification)),# permissions_classes=(InboxPermissions,),)),
url(r'^notifications/', LDPViewSet.urls(model=Notification, permission_classes=(InboxPermissions,))),
url(r'^subscriptions/', LDPViewSet.urls(model=Subscription)),
]