annotation editable
This commit is contained in:
parent
e0dc7b48e9
commit
d8aeac1e8c
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class Annotation(models.Model):
|
||||||
if user.is_authenticated():
|
if user.is_authenticated():
|
||||||
if user.get_profile().capability('canEditAnnotations') or \
|
if user.get_profile().capability('canEditAnnotations') or \
|
||||||
self.user == user or \
|
self.user == user or \
|
||||||
user.groups.filter(id__in=self.groups.all()).count() > 0:
|
user.groups.filter(id__in=self.item.groups.all()).count() > 0:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue