passage des ACL en module

This commit is contained in:
Maxime Alves LIRMM 2020-07-02 10:58:54 +02:00
parent 6b999cdb94
commit 906bdb6ded
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
""" Base ACL module that contains generic functions for domains ACL
"""
def connected(func): def connected(func):
""" Decorator that checks if the user object of the request has been set """ Decorator that checks if the user object of the request has been set
""" """
@ -11,9 +14,6 @@ def connected(func):
return caller return caller
class BaseACL: def public(*args, **kwargs) -> bool:
""" Base ACL class that contains generic methods for domains ACL "Unlimited access"
""" return True
def public(self, *args) -> bool:
"Unlimited access"
return True