pylint lib/acl.py
This commit is contained in:
parent
6653a0cd0a
commit
0cd7c987e5
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user