mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 22:23:23 +00:00
Merge branch 'bugfix' into 'master'
Small fix on accounting permissions See merge request !87
This commit is contained in:
commit
3c22db5bd2
@ -225,7 +225,7 @@ class GeneralJournal(models.Model):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def can_be_viewed_by(self, user):
|
def can_be_viewed_by(self, user):
|
||||||
return self.club_account.can_be_edited_by(user)
|
return self.club_account.can_be_viewed_by(user)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse('accounting:journal_details', kwargs={'j_id': self.id})
|
return reverse('accounting:journal_details', kwargs={'j_id': self.id})
|
||||||
|
Loading…
Reference in New Issue
Block a user