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
|
|
@ -74,7 +74,7 @@ class Event(models.Model):
|
|||
if user and not user.is_anonymous() \
|
||||
and (not self.user or \
|
||||
self.user == user or \
|
||||
user.get_profile().capability('canEditEvents')):
|
||||
user.profile.capability('canEditEvents')):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue