def METHOD_NAME(data_fixture):
    user = data_fixture.create_user()
    workspace = data_fixture.create_workspace(user=user)
    database = data_fixture.create_database_application(workspace=workspace)
    table_with_access = data_fixture.create_database_table(user, database=database)
    table_with_no_access = data_fixture.create_database_table(user, database=database)
    no_access_role = Role.objects.get(uid="NO_ACCESS")
    RoleAssignmentHandler().assign_role(
        user, workspace, role=no_access_role, scope=table_with_no_access
    )
    with pytest.raises(PermissionDenied):
        FieldHandler().create_field(
            user=user,
            table=table_with_access,
            type_name="link_row",
            name="link row",
            link_row_table=table_with_no_access,
        )
    with pytest.raises(PermissionDenied):
        FieldHandler().create_field(
            user=user,
            table=table_with_access,
            type_name="link_row",
            name="link row",
            link_row_table=table_with_no_access,
            has_related_field=False,
        )