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 1/2] 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) From 5dcfb479914fbd927d5242f6efaefe1559d0d544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABlle=20Morin?= Date: Thu, 1 Aug 2019 12:19:05 +0000 Subject: [PATCH 2/2] Update models.py --- djangoldp_notification/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py index 8b719ed..6c2baf8 100644 --- a/djangoldp_notification/models.py +++ b/djangoldp_notification/models.py @@ -33,6 +33,7 @@ class Notification(Model): auto_author = 'user' ordering = ['-date'] anonymous_perms = ['add'] + authenticated_perms = [] owner_perms = ['view', 'change'] def __str__(self):