From 906bdb6dedab81e2598377517936c7c45c2ac2e0 Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Thu, 2 Jul 2020 10:58:54 +0200 Subject: [PATCH] passage des ACL en module --- halfapi/acl.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/halfapi/acl.py b/halfapi/acl.py index 32b83c6..c222cef 100644 --- a/halfapi/acl.py +++ b/halfapi/acl.py @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +""" Base ACL module that contains generic functions for domains ACL +""" + def connected(func): """ Decorator that checks if the user object of the request has been set """ @@ -11,9 +14,6 @@ def connected(func): return caller -class BaseACL: - """ Base ACL class that contains generic methods for domains ACL - """ - def public(self, *args) -> bool: - "Unlimited access" - return True +def public(*args, **kwargs) -> bool: + "Unlimited access" + return True