Skip to content

Commit

Permalink
Fix auth of privilege Payments:Dashboard:detailed in Dashboard header
Browse files Browse the repository at this point in the history
We were checking `arpa` action instead of `detailed`.

Ensure admin users who should have access to `detailed` action
have also access rights for `detailed` action.

remp/crm#1709
  • Loading branch information
markoph committed Dec 2, 2021
1 parent 2b60fdb commit a1bd049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/Dashboard/header.latte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<li role="presentation" n:class="$presenter->isLinkCurrent('arpu') ? active"><a n:href="arpu">{_payments.admin.stats.menu.arpu}</a></li>
{/if}

{if $user->isAllowed('Payments:Dashboard', 'arpu')}
{if $user->isAllowed('Payments:Dashboard', 'detailed')}
<li role="presentation" n:class="$presenter->isLinkCurrent('detailed') ? active"><a n:href="detailed">{_payments.admin.stats.menu.detailed}</a></li>
{/if}
</ul>
Expand Down

0 comments on commit a1bd049

Please sign in to comment.