From 97e834bcaa61de0b5a26238a50f94fa6d5a14990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABlle=20Morin?= Date: Thu, 1 Aug 2019 12:03:00 +0000 Subject: [PATCH] update: LDPPermissions added --- djangoldp_notification/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index ce64bbd..8b719ed 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -30,8 +30,10 @@ class Notification(Model): class Meta(Model.Meta): #permission_classes = [InboxPermissions] - depth = 0 + auto_author = 'user' ordering = ['-date'] + anonymous_perms = ['add'] + owner_perms = ['view', 'change'] def __str__(self): return '{}'.format(self.type)