This topic is locked

Dashboard charts hidden based on dynamic permissions.

1/25/2018 1:55:59 PM
PHPRunner General questions
D
DealerModules authorDevClub member

Using:

PHPRunner 9.8 (build 29967)

Windows 10 PRO

Apache with MySQL 5.7
Background:

I have setup dynamic permission groups. Group A is set in the Admin Panel to not be able to access Table:Widgets but can see other tables.

I have a dashboard set as my default page to users to start at when logging into the app.
Question:

I have several charts in the dashboard, and one of them is a "Count of Widgets", how can I hide that chart based on the dynamic permissions for that user.

I have thought about creating different dashboards based on the user's permission which could be approx 8 different dashboards and then the login would send them to the correct dashboard, but that seemed like a lot of work.
So to make a long story shorter, how can the dashboard hide the dashboard areas that the end user doesn't have table permission to see?
(Right now they see all charts but the widgets charts will show "0" because they don't have permission to query that table.)
Any direction appreciated.
Thanks again.
Paul

mbintex 1/27/2018

if you have the charts as separate views in your menu, you can have dynamic permissions for these separately. And if a user can´t see chart A alone via the menu, he will not see chart A in a dashboard too.

D
DealerModules authorDevClub member 1/28/2018



if you have the charts as separate views in your menu, you can have dynamic permissions for these separately. And if a user can´t see chart A alone via the menu, he will not see chart A in a dashboard too.


Thank you greatly! I don't know why I didn't see your solution myself but I tested and it works perfectly.
I appreciate your reply.

Paul