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

Dashboard Charts: no permission for child doctype charts #26010

Open
casesolved-co-uk opened this issue Apr 17, 2024 · 0 comments
Open

Dashboard Charts: no permission for child doctype charts #26010

casesolved-co-uk opened this issue Apr 17, 2024 · 0 comments
Labels

Comments

@casesolved-co-uk
Copy link
Contributor

casesolved-co-uk commented Apr 17, 2024

When Dashboard Charts are based on a child table, the permissions code will always deny permission according to this line:

if doc.document_type in allowed_doctypes:

Only valid for 'normal' users (not Administrator or a System Manager)

casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue Apr 18, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue Apr 18, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue Apr 18, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
fix: normalise sql
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
fix: normalise sql
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
fix: normalise sql
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
fix: normalise sql
fix: db query has no child tables
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
fix: normalise sql
fix: db query has no child tables
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
fix: normalise sql
fix: db query has no child tables
casesolved-co-uk added a commit to CaseSolvedUK/frappe that referenced this issue May 7, 2024
…rappe#26020

chore: disable semgrep
chore: formatting
chore: formatting
chore: formatting
chore: formatting
feat: add permissions test case
chore: formatting
chore: formatting
fix: the actual bug! frappe#26010
fix: typos in test
fix: test typo
fix: chart permissions caching and roles and test chart delete
fix: role db escape
fix: normalise sql
fix: db query has no child tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant