Dear Support,
I am using project template (MVC5 + AJ1), would like to know how best method to implement content (widget) authorisation for the standard Dashboard based on role defined.
Thanks. /Tommy
4 Answer(s)
-
0
Dear Support,
Would appreciate if you could advice such authorisation is possible at all or I need to buld one dashboard per user role. Thanks.
/Tommy
-
0
Hi,
Are you planning to show/hide some widgets according to current user's role or are you planning to show different data in widgets ?
If it is the first one, you can define a permission for seeing each widget and assign them to relatead roles.
-
0
Yes. The first one. Would you able to point me to example of implementing the widget permission and asssignment.
Thank you. /tommy
-
0
Hi,
Actually it is not different than any other permission. You just need to define permissions just like you do for any other page and show/hide your widgets according to current user's permisison.
You can take a look at usage of AppPermissions.Pages_Administration_Users_Create permission.