Change Trombi permissions

This commit is contained in:
Skia 2017-05-12 09:07:35 +02:00
parent a0bd5ee8ff
commit d88ffae51b

View File

@ -74,9 +74,6 @@ class Trombi(models.Model):
return reverse('trombi:detail', kwargs={'trombi_id': self.id}) return reverse('trombi:detail', kwargs={'trombi_id': self.id})
def is_owned_by(self, user): def is_owned_by(self, user):
return user.is_owner(self.club)
def can_be_edited_by(self, user):
return user.can_edit(self.club) return user.can_edit(self.club)
def can_be_viewed_by(self, user): def can_be_viewed_by(self, user):