forked from 0x2620/pandora
user.get_profile()->user.profile
This commit is contained in:
parent
3e8f28ff47
commit
1cc795995d
27 changed files with 72 additions and 70 deletions
|
|
@ -103,7 +103,7 @@ class Annotation(models.Model):
|
|||
|
||||
def editable(self, user):
|
||||
if user.is_authenticated():
|
||||
if user.get_profile().capability('canEditAnnotations') or \
|
||||
if user.profile.capability('canEditAnnotations') or \
|
||||
self.user == user or \
|
||||
user.groups.filter(id__in=self.item.groups.all()).count() > 0:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue