8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-29 16:12:26 +00:00

Fix le can_view de Machine.

This commit is contained in:
Hugo LEVY-FALK 2017-12-29 01:59:55 +01:00
parent 81d3d13169
commit afa5367a30

View file

@ -123,6 +123,7 @@ class Machine(models.Model):
if not user_request.has_perms(('cableur',)) and self.user != user_request:
return False, u"Vous n'avez pas droit de voir les machines autre\
que les vôtres"
return True, None
def __str__(self):
return str(self.user) + ' - ' + str(self.id) + ' - ' + str(self.name)