-
Notifications
You must be signed in to change notification settings - Fork 428
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
User Permissions are not applied correctly in Insights. Restricted users can see data they should not have access to.
To Reproduce
Steps to reproduce the behavior:
- Set up User Permissions on a doctype so a user can only see a subset of records.
- Create an Insights query, chart, and a dashboard that uses that doctype.
- View the dashboard as the restricted user.
- The user sees all records instead of only those allowed by their User Permissions.
Expected behavior
Insights should respect site User Permissions and only show data the user is allowed to see.
Screenshots
Current Problem
The restricted user sees all the records

The restricted user can apply filter values that are not permitted

Preferred Solution
The restricted user sees only the allowed records

The restricted user can only apply valid filter values

Desktop:
- OS Ubuntu 22.04 LTS
- Browser Chrome 145.0.7632.117
- Version
- frappe version-14 (14.99.3)
- erpnext version-14 (14.92.2)
- insights version-3 (3.3.1)
Additional context
User Permissions work correctly in insights develop (3.2.0-dev)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working