Commit 364d9de7 by Torkel Ödegaard

feat(ui viewer): prevent viewers from creating new dashboard or importing dashboard, closes #2590

parent ca5e8c73
......@@ -63,11 +63,11 @@
</div>
<div class="search-button-row">
<button class="btn btn-inverse pull-left" ng-click="newDashboard()">
<button class="btn btn-inverse pull-left" ng-click="newDashboard()" ng-show="contextSrv.isEditor">
<i class="fa fa-plus"></i>
New
</button>
<a class="btn btn-inverse pull-left" href="import/dashboard">
<a class="btn btn-inverse pull-left" href="import/dashboard" ng-show="contextSrv.isEditor">
<i class="fa fa-download"></i>
Import
</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment