@check_type(dict)
def is_restricted(archival_object, query_string, restriction_acts):
    'Parses an archival object to determine if it is restricted.\n\n    Iterates through notes, looking for a conditions governing access note\n    which contains a particular set of strings.\n    Also looks for associated rights statements which indicate object may be\n    restricted.\n\n    :param dict archival_object: an ArchivesSpace archival_object.\n    :param list restriction_acts: a list of strings to match restriction act against.\n\n    :returns: True if archival object is restricted, False if not.\n    :rtype: bool\n    '
    for note in archival_object['notes']:
        if (note['type'] == 'accessrestrict'):
            if text_in_note(note, query_string.lower()):
                return True
    for rights_statement in archival_object['rights_statements']:
        if indicates_restriction(rights_statement, restriction_acts):
            return True
    return False
Parses an archival object to determine if it is restricted.

Iterates through notes, looking for a conditions governing access note
which contains a particular set of strings.
Also looks for associated rights statements which indicate object may be
restricted.

:param dict archival_object: an ArchivesSpace archival_object.
:param list restriction_acts: a list of strings to match restriction act against.

:returns: True if archival object is restricted, False if not.
:rtype: bool
@check_type(dict)
def is_restricted(archival_object, query_string, restriction_acts):
    'Parses an archival object to determine if it is restricted.\n\n    Iterates through notes, looking for a conditions governing access note\n    which contains a particular set of strings.\n    Also looks for associated rights statements which indicate object may be\n    restricted.\n\n    :param dict archival_object: an ArchivesSpace archival_object.\n    :param list restriction_acts: a list of strings to match restriction act against.\n\n    :returns: True if archival object is restricted, False if not.\n    :rtype: bool\n    '
    for note in archival_object['notes']:
        if (note['type'] == 'accessrestrict'):
            if text_in_note(note, query_string.lower()):
                return True
    for rights_statement in archival_object['rights_statements']:
        if indicates_restriction(rights_statement, restriction_acts):
            return True
    return False