Skip to content

Commit

Permalink
fix(nav): disappearing dashboard button
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Jan 9, 2019
1 parent 8c62a8c commit 32a4e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/permissions/roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ var roles = {
id: 'mod',
name: 'Moderator',
description: 'Moderators',
allowedAction: ['mod:*', 'ticket:create edit view attachment removeAttachment', 'comment:*', 'notes:*', 'reports:view']
allowedAction: ['mod:*', 'dashboard:*', 'ticket:create edit view attachment removeAttachment', 'comment:*', 'notes:*', 'reports:view']
},
support: {
id: 'support',
name: 'Support',
description: 'Support User',
allowedAction: ['ticket:*', 'accounts:create edit view delete', 'comment:editSelf create delete', 'notes:create view', 'reports:view', 'notices:*']
allowedAction: ['ticket:*', 'dashboard:*', 'accounts:create edit view delete', 'comment:editSelf create delete', 'notes:create view', 'reports:view', 'notices:*']
},
user: {
id: 'user',
Expand Down
4 changes: 2 additions & 2 deletions src/views/partials/nav.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="sidebar nopadding " style="{{#if data.common.notice}}top: 105px;{{/if}} overflow-x: hidden;" data-scroll-opacitymax="0.1">
<div class="side-nav-container" style="min-height: 100%; padding-bottom: 50px;">
<ul class="side-nav">
{{#compare data.common.loggedInAccount.role '!=' 'user'}}
{{#canUser data.user "dashboard:view"}}
<li {{#is nav 'dashboard'}} class='active' {{/is}}>
<a class="navHome" href="/dashboard"><i class="material-icons">dashboard</i><span class="show-for-large-up">Dashboard</span></a>
</li>
{{/compare}}
{{/canUser}}
<li class="hasSubMenu{{#is nav 'tickets'}} active {{/is}}" data-nav-id="tickets" style="position: relative;" data-nav-accordion data-nav-accordion-target="side-nav-accordion-tickets">
<a class="navTickets no-ajaxy" href="/tickets"><i class="material-icons">assignment</i>Tickets</a>

Expand Down

0 comments on commit 32a4e87

Please sign in to comment.