Reports with related fields return no records for non-admin user #2895

Closed
opened 2026-02-20 15:30:17 -05:00 by deekerman · 2 comments
Owner

Originally created by @CBeechey on GitHub (Mar 22, 2018).

Issue

Report containing related field(s) returns no records for non-admin user in security group with appropriate permissions to view own/group records.

Appears to be a re-occurrence of https://github.com/salesagility/SuiteCRM/pull/3155, fixed in 7.8.2. Issue reappears from 7.8.10 onwards.

Expected Behavior

Report should return records assigned to user or user group

Actual Behavior

Report returns no records

Possible Fix

Steps to Reproduce

  1. add non-admin user to security group with role giving access to appropriate modules.
  2. assign appropriate records to user
  3. create report with related field(s)
  4. run report as non-admin user

Context

Your Environment

  • SuiteCRM Version used: 7.8.10 onwards
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
  • Environment name and version (e.g. MySQL, PHP 7):
  • Operating System and version (e.g Ubuntu 16.04):
Originally created by @CBeechey on GitHub (Mar 22, 2018). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> Report containing related field(s) returns no records for non-admin user in security group with appropriate permissions to view own/group records. Appears to be a re-occurrence of https://github.com/salesagility/SuiteCRM/pull/3155, fixed in 7.8.2. Issue reappears from 7.8.10 onwards. #### Expected Behavior <!--- Tell us what should happen --> Report should return records assigned to user or user group #### Actual Behavior <!--- Tell us what happens instead --> <!--- Also please check relevant logs (suitecrm.log, php error.log etc.) --> Report returns no records #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. add non-admin user to security group with role giving access to appropriate modules. 2. assign appropriate records to user 3. create report with related field(s) 4. run report as non-admin user #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.8.10 onwards * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): * Environment name and version (e.g. MySQL, PHP 7): * Operating System and version (e.g Ubuntu 16.04):
deekerman 2026-02-20 15:30:17 -05:00
Author
Owner

@connorshea commented on GitHub (Sep 23, 2019):

I think this is the same as #7552? @Dillon-Brown Since this is a regression that's occurred more than once, it should probably have some tests.

@connorshea commented on GitHub (Sep 23, 2019): I think this is the same as #7552? @Dillon-Brown Since this is a regression that's occurred more than once, it should probably have some tests.
Author
Owner

@johnM2401 commented on GitHub (Mar 17, 2025):

Hey!

Thank you for raising this issue.

I've given this a try in the latest release (7.14.6) and this appears to be working well.
I think this may have been resolved via the PR: https://github.com/salesagility/SuiteCRM/pull/7898

To test, I've created a Report on Accounts, with the related Contact Name as a selected field.
I can view this report as Admin, a Non-admin with Roles and a Non-admin without roles.

I'm going to close this off for now, but please let us know if you're still experiencing this issue in the latest releases.
Thank you for your contribution!

@johnM2401 commented on GitHub (Mar 17, 2025): Hey! Thank you for raising this issue. I've given this a try in the latest release (7.14.6) and this appears to be working well. I think this may have been resolved via the PR: https://github.com/salesagility/SuiteCRM/pull/7898 To test, I've created a Report on Accounts, with the related Contact Name as a selected field. I can view this report as Admin, a Non-admin with Roles and a Non-admin without roles. I'm going to close this off for now, but please let us know if you're still experiencing this issue in the latest releases. Thank you for your contribution!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#2895
No description provided.