|
|
@ -696,9 +696,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, |
|
|
""" Fonction appellée par freeradius. Enregistre la mac pour |
|
|
""" Fonction appellée par freeradius. Enregistre la mac pour |
|
|
une machine inconnue sur le compte de l'user""" |
|
|
une machine inconnue sur le compte de l'user""" |
|
|
all_interfaces = self.user_interfaces() |
|
|
all_interfaces = self.user_interfaces() |
|
|
if all_interfaces.count() > OptionalMachine.get_cached_value( |
|
|
if Machine.can_create(self): |
|
|
'max_lambdauser_interfaces' |
|
|
|
|
|
): |
|
|
|
|
|
return False, _("Maximum number of registered machines reached.") |
|
|
return False, _("Maximum number of registered machines reached.") |
|
|
if not nas_type: |
|
|
if not nas_type: |
|
|
return False, _("Re2o doesn't know wich machine type to assign.") |
|
|
return False, _("Re2o doesn't know wich machine type to assign.") |
|
|
|