Refactor export.tpl to use rights checks (#60)
authorbonnedav <theD_2011@hotmail.com>
Tue, 3 Apr 2018 01:14:01 +0000 (19:14 -0600)
committeranuko <support@anuko.com>
Tue, 3 Apr 2018 01:14:01 +0000 (01:14 +0000)
WEB-INF/templates/export.tpl

index 1c9866e..487f009 100644 (file)
@@ -2,7 +2,7 @@
 <table cellspacing="0" cellpadding="7" border="0" width="720">
   <tr>
     <td align="center">
-{if $user->isManager()}
+{if $user->can('export_data')}
       <table border="0" width="60%">
         <colgroup>
           <col width="50%">