Browse Source

Utilise l'acl pour la vérification de la possibilité de création

Fix_Hash_Check_Very_Old_Passwd
Grizzly 7 years ago
committed by klafyvel
parent
commit
ae5ef6a3c5
  1. 4
      users/models.py

4
users/models.py

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

Loading…
Cancel
Save