def METHOD_NAME(
    client,
    item_lib_martigny,  # on shelf
    item_lib_fully,  # on loan
    librarian_martigny
):
    """Test record retrieval."""
    login_user(client, librarian_martigny)
    data = call_api_permissions(client, 'items', item_lib_fully.pid)
    assert not data['delete']['can']
    assert not data['update']['can']
    data = call_api_permissions(client, 'items', item_lib_martigny.pid)
    assert data['delete']['can']
    assert data['update']['can']
    response = client.get(
        url_for(
            'api_blueprint.permissions',
            route_name='items',
            record_pid='dummy_item_pid'
        )
    )
    assert response.status_code == 404