Viewers cannot access App plugin page

Hello,

Sorry if this is a duplicate, but I could not an other question about this.
I am trying to develop an app plugin.
I have configured the following in my plugin.json file :

"includes": [
{
  "type": "page",
  "name": "Test app page",
  "component": "PageCtrl",
  "role": "Viewer",
  "addToNav": true,
  "defaultNav": true
}
...
]

I have set role to “Viewer”. However the page is shown in left sidenav for Editors and Admins but is not shown to Viewers. Is this behavior intended? How can I enable it for viewers?

I am using Grafana v5.2.1 (built from source).

Also, is there any documentation about the plugin.json file format other than http://docs.grafana.org/plugins/developing/plugin.json/ ?

Thanks & regards,

Jeremy

I am also facing similar problem. I have set page role to ‘Viewer’ but app pages are shown only when user is having Editors and Admins permission. Are we missing something?

@sjalal Were you able to resolve this?

Hi @digrich ,

I had to change some Go code to handle Viewers for plugin page (pkg/models/org_user.go).
It was not working otherwise.

I also encountered this problem, can you share the modified code? Thank you so much

@sjalal there had been many changes since Grafana V5 and the plugins platform so I can’t really comment if this is an intended behaviour or a bug in that version.

I advice you to upgrade your grafana version