pylint lib/acl.py

This commit is contained in:
Maxime Alves LIRMM 2020-10-05 11:36:17 +02:00
parent 6653a0cd0a
commit 0cd7c987e5

View File

@ -1,9 +1,11 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
"""
Base ACL module that contains generic functions for domains ACL
"""
from functools import wraps from functools import wraps
from starlette.authentication import UnauthenticatedUser from starlette.authentication import UnauthenticatedUser
""" Base ACL module that contains generic functions for domains ACL
"""
def public(*args, **kwargs) -> bool: def public(*args, **kwargs) -> bool:
"Unlimited access" "Unlimited access"
@ -25,4 +27,3 @@ def connected(fct=public):
return fct(req, **{**kwargs, **req.path_params}) return fct(req, **{**kwargs, **req.path_params})
return caller return caller