mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 00:13:45 +00:00
Fix le can_view de Machine.
This commit is contained in:
parent
81d3d13169
commit
afa5367a30
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ class Machine(models.Model):
|
||||||
if not user_request.has_perms(('cableur',)) and self.user != user_request:
|
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\
|
return False, u"Vous n'avez pas droit de voir les machines autre\
|
||||||
que les vôtres"
|
que les vôtres"
|
||||||
|
return True, None
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.user) + ' - ' + str(self.id) + ' - ' + str(self.name)
|
return str(self.user) + ' - ' + str(self.id) + ' - ' + str(self.name)
|
||||||
|
|
Loading…
Reference in a new issue