8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Fix le can_view de Machine.

This commit is contained in:
LEVY-FALK Hugo 2017-12-29 01:59:55 +01:00 committed by root
parent dc38c32ad4
commit 077215cda7

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)