Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
hide content pack link if the user doesn't have enough permissions to…
Browse files Browse the repository at this point in the history
… import content packs

right now only admin users would have the necessary permissions

fixes #1033
  • Loading branch information
kroepke committed Jan 15, 2015
1 parent 3b2e590 commit e5a5422
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app/views/system/sidebar.scala.html
Expand Up @@ -56,11 +56,15 @@
</a>
</li>

<li>
<a href="@routes.BundlesController.index()">
Content Packs
</a>
</li>
@if(Permissions.isPermitted(RestPermissions.DASHBOARDS_CREATE) &&
Permissions.isPermitted(RestPermissions.INPUTS_CREATE) &&
Permissions.isPermitted(RestPermissions.STREAMS_CREATE)) {
<li>
<a href="@routes.BundlesController.index()">
Content Packs
</a>
</li>
}

@if(Permissions.isPermitted(RestPermissions.INPUTS_EDIT)) {
<li>
Expand Down

0 comments on commit e5a5422

Please sign in to comment.