diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 5b541489..ff438e6e 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1413,7 +1413,7 @@ def set_machine(machine): try: machine.mac(result[1]) except ValueError, c: if len(c.args)>1 and c.args[1] == 1 \ - and (isadm or machine.proprietaire().chbre()[0] == 'G'): + and (isadm or machine.nom().endswith("-g.crans.org")): # Mac en double arg = u'--title "Adresse MAC" ' arg += u'--yesno "L\'adresse MAC existe déja, continuer ? \n" 0 0'