Commit 077215cd authored by LEVY-FALK Hugo's avatar LEVY-FALK Hugo Committed by root

Fix le can_view de Machine.

parent dc38c32a
......@@ -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( + ' - ' + str(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment