Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - #10611 Subpanels don't show related records links when view permission is set to "group" #10612

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix - #10611 Subpanels don't show related records links when view per…
…mission is set to "group"
SinergiaCRM committed Jan 13, 2025
commit ecd19ff297971d4ddf0c4542d0a180035c851276
Original file line number Diff line number Diff line change
@@ -125,10 +125,11 @@ public function displayList(&$layout_def)
$detailView = $layout_def['DetailView'] ?? '';
$ownerId = $layout_def['owner_id'] ?? '';
$ownerModule = $layout_def['owner_module'] ?? '';
$groupAccessView = SecurityGroup::groupHasAccess($module,$record,'view');
if (!empty($record) &&
($detailView && !$layout_def['owner_module']
|| $detailView && !ACLController::moduleSupportsACL($layout_def['owner_module'])
|| ACLController::checkAccess($ownerModule, 'view', $ownerId == $current_user->id))) {
|| $detailView && !ACLController::moduleSupportsACL($layout_def['owner_module'])
|| ACLController::checkAccess($ownerModule, 'view', $ownerId == $current_user->id, 'module', $groupAccessView))) {
$link = ajaxLink("index.php?module=$module&action=$action&record={$record}{$parent}");
if ($module == 'EAPM') {
$link = "index.php?module=$module&action=$action&record={$record}{$parent}";