Base solution for your next web application
Open Closed

Best Method to implement Dashboard Content Authorisation? #3029


User avatar
0
tteoh created

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)
  • User Avatar
    0
    tteoh created

    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

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    tteoh created

    Yes. The first one. Would you able to point me to example of implementing the widget permission and asssignment.

    Thank you. /tommy

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.