mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-28 01:43:46 +00:00
Utilise l'acl pour la vérification de la possibilité de création
This commit is contained in:
parent
d17e71c53c
commit
ae5ef6a3c5
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue