mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-05 01:16:27 +00:00
machines prise en compte pour l'ajout automatique
This commit is contained in:
parent
bcc4b3f0ab
commit
d17e71c53c
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ 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(active=False)
|
||||
all_interfaces = self.user_interfaces()
|
||||
if all_interfaces.count() > OptionalMachine.get_cached_value(
|
||||
'max_lambdauser_interfaces'
|
||||
):
|
||||
|
|
Loading…
Reference in a new issue