user.get_profile()->user.profile
This commit is contained in:
parent
3e8f28ff47
commit
1cc795995d
27 changed files with 72 additions and 70 deletions
|
|
@ -102,7 +102,7 @@ class Entity(models.Model):
|
|||
if not user or user.is_anonymous():
|
||||
return False
|
||||
if user.is_staff or \
|
||||
user.get_profile().capability('canEditEntities') == True or \
|
||||
user.profile.capability('canEditEntities') == True or \
|
||||
(item and item.editable(user)):
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue