Fix - #10611 Subpanels don't show related records links when view permission is set to "group" #10612
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes an issue where subpanels weren't correctly displaying links to related records when the user's role had "Group" view permissions. Previously, when viewing a record's subpanel, related records would show only as plain text instead of clickable links if the user had Group-level view permissions, even when they had access to those records.
The fix adds specific user permission checking logic in the subpanel code to properly evaluate the "View" permission column value, ensuring links are displayed according to the user's actual permissions.
Related issue: #10611
Motivation and Context
This change is required to ensure proper functionality of subpanels when working with security groups and role-based permissions. The previous behavior was inconsistent with how direct relationships were handled and made navigation more difficult for users with group-level permissions.
The fix maintains the security model while improving user experience by showing clickable links when the user actually has permission to view the related record.
How To Test This
Types of changes
Final checklist