def func_wrapper(*args, **kwargs): if has_access(): func(*args, **kwargs)
def access_required_wrapper(*args, **kwargs): if has_access(*args): return func(*args, **kwargs) else: return func("No access. Data is not visible!!!")
def func_wrapper(*args, **kwargs): if has_access() is True: return func(*args, **kwargs)
def get_access(*args, **kwargs): if has_access(*args, **kwargs) > 0: return func(*args, **kwargs) else: return False
def wrap_func(name): if has_access(name): return func(name) else: return None
def function_wrapper(*args, **kwargs): if has_access(): function(*args, **kwargs)
def wrapper(*args, **kwargs): if authorization.has_access(): return fun(*args, **kwargs)
def function_wrapper(*args, **kwargs): if not authorization.has_access(): raise AuthorizationError return func(*args, **kwargs)