Salesforce link appears in "Operations" links on views for anonymous users

Created on 26 April 2021, over 3 years ago
Updated 14 February 2024, 11 months ago

Problem/Motivation

If you create a view of fields for an item with a salesforce mapping and add the Operations Links field in the view, the "Salesforce" link shows up for anonymous users, even though the destination of the link gives them an access denied.

Steps to reproduce

1. Create a view that lists entities that are connected to a Salesforce mapping.
2. Set the view to show fields.
3. Add the "Operations Link" field to the list of fields to show.
4. Set the permission for the page to be visible to anonymous users.

5. Visit the page. See links to "Salesforce" (but no links to "View" or "Edit" or the like). I'd expect to not see that link, because the destination is a 403.

Proposed resolution

Maybe there's a way to check the destination of the link before rendering it in the view?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

5.0

Component

salesforce_mapping_ui.module

Created by

πŸ‡ΊπŸ‡ΈUnited States mariacha1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024