Skip to content

Commit

Permalink
Merge pull request #1095 from ordd/fix_new_query_permission
Browse files Browse the repository at this point in the history
Fix: use create_query permission for new query button.
  • Loading branch information
arikfr committed Jun 6, 2016
2 parents 1fbeb5d + 437f589 commit cd06d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rd_ui/app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="tile m-t-10 m-b-5">
<div class="t-body p-5">
<a href="queries/new" class="btn btn-default">New Query</a>
<a href="queries/new" ng-show="currentUser.hasPermission('create_query')" class="btn btn-default">New Query</a>
<button ng-show="currentUser.hasPermission('create_dashboard')" type="button" class="btn btn-default"
data-toggle="modal" href="#new_dashboard_dialog">New Dashboard
</button>
Expand Down

0 comments on commit cd06d27

Please sign in to comment.