8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Suppression de la ligne inutile

This commit is contained in:
Grizzly 2018-12-08 22:52:08 +00:00 committed by klafyvel
parent ae5ef6a3c5
commit c5b3f50955

View file

@ -695,7 +695,6 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
def autoregister_machine(self, mac_address, nas_type):
""" Fonction appellée par freeradius. Enregistre la mac pour
une machine inconnue sur le compte de l'user"""
all_interfaces = self.user_interfaces()
if Machine.can_create(self):
return False, _("Maximum number of registered machines reached.")
if not nas_type: