passage des ACL en module
This commit is contained in:
parent
6b999cdb94
commit
906bdb6ded
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue