From 2f97856f2b4b23fe794462df6827364aecccc4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABlle=20Morin?= <morin.gaelle@gmail.com> Date: Thu, 1 Aug 2019 11:23:33 +0000 Subject: [PATCH] update: LDPPermissions added --- djangoldp_profile/models.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/djangoldp_profile/models.py b/djangoldp_profile/models.py index a233202..97e5892 100644 --- a/djangoldp_profile/models.py +++ b/djangoldp_profile/models.py @@ -23,11 +23,10 @@ class Profile(Model): class Meta: auto_author = 'user' - permissions = ( - ('view_member', 'Read'), - ('control_member', 'Control'), - ) - depth = 0 + anonymous_perms = ['view'] + authenticated_perms = ['inherit'] + owner_perms = ['inherit', 'change'] + def __str__(self): return '{} ({})'.format(self.user.get_full_name(), self.user.username) -- GitLab