def must_have_permission(permittee, target_obj_or_class, perm_name, allow_redirect=True):
    if isinstance(permittee, str):
        permittee = get_permittee_from_threadlocals(permittee)
        
    if not has_permission(permittee, target_obj_or_class, perm_name):
        raise PermissionDenied(
            perm_name, target_obj_or_class,
            permittee, allow_redirect=allow_redirect)
Does the object C{permittee} have the permission named by C{perm_name}
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/shortcuts.py/must_have_permission