diff --git a/server/src/uds/core/auths/authenticator.py b/server/src/uds/core/auths/authenticator.py index 8bb00ec9d..b78acfd6a 100644 --- a/server/src/uds/core/auths/authenticator.py +++ b/server/src/uds/core/auths/authenticator.py @@ -662,13 +662,14 @@ class Authenticator(Module): This will be invoked from admin interface, when admin wants to create a new group. - modified groupData will be used to store values at database. + modified group_data will be used to store values at database. Args: - groupData: Contains data received from user directly, that is a dictionary + group_data: Contains data received from interface directly, that is a dictionary with at least: name, comments and state. (State.ACTIVE, State.INACTIVE) This is an in/out parameter, so you can modify, for example, **comments** + (it's the "fields" from the admin form) Returns: Raises an exception if things didn't went fine, diff --git a/server/src/uds/core/services/service.py b/server/src/uds/core/services/service.py index c8e9c5106..367ff1517 100644 --- a/server/src/uds/core/services/service.py +++ b/server/src/uds/core/services/service.py @@ -294,7 +294,7 @@ class Service(Module): if self.userservices_limit == 0: self.userservices_limit = consts.UNLIMITED elif callable(services_limit): - self.userservices_limit = services_limit() + self.userservices_limit = typing.cast(collections.abc.Callable[..., int], services_limit)() else: self.userservices_limit = consts.UNLIMITED except Exception: