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
""" 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:
def public(*args, **kwargs) -> bool:
"Unlimited access"
return True