Skip to content

Commit

Permalink
added acl checking
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsetsystems committed Sep 7, 2006
1 parent 5f17434 commit 8ad119e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion interface/reports/players_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
include_once("$srcdir/acl.inc");

$squads = acl_get_squads();
$auth_notes_a = acl_check('encounters', 'notes_a');

$fitnesses = array(
'Full Play',
Expand Down Expand Up @@ -147,7 +148,13 @@ function gopid(pid) {
<? echo $fitnesses[$fitness-1] ?>&nbsp;
</td>
<td class="detail" bgcolor="<? echo $fitcolors[$fitness-1] ?>">
&nbsp;<? echo substr($erow['date'], 0, 10) . ' ' . $erow['reason'] ?>&nbsp;
&nbsp;<?php
if ($auth_notes_a) {
echo substr($erow['date'], 0, 10) . ' ' . $erow['reason'];
} else {
echo '(No access)';
}
?>&nbsp;
</td>
</tr>
<?
Expand Down

0 comments on commit 8ad119e

Please sign in to comment.