passage des ACL en module
This commit is contained in:
parent
6b999cdb94
commit
906bdb6ded
|
@ -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
|
|
||||||
"""
|
|
||||||
def public(self, *args) -> bool:
|
|
||||||
"Unlimited access"
|
"Unlimited access"
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue