Skip to content

Commit 1063b51

Browse files
committed
Hide created timestamp if not staff
1 parent 6f6f025 commit 1063b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/User/View.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ require('./header.inc.phtml'); ?>
9191
<th scope="row" class="align-middle text-right">Id</th>
9292
<td><code><?=filter_var($user_id, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></code></td>
9393
</tr>
94+
<? if ($active_user && $active_user->isStaff()) { ?>
9495
<tr class="text-success">
9596
<th scope="row" class="align-middle text-right">Date created</th>
9697
<td><time datetime="<?=$user_created_dt->format('c')?>"><?=$user_created_dt->format('D M j, Y')?></time></td>
9798
</tr>
98-
<? if ($active_user && $active_user->isStaff()) { ?>
9999
<tr class="text-<?=($user->isVerified() ? 'info' : 'danger')?>">
100100
<th scope="row" class="align-middle text-right">Date verified</th>
101101
<td><?=($user->isVerified() ? '<time datetime="' . $user_verified_dt->format('c') . '">' . $user_verified_dt->format('D M j, Y') . '</time>' : '<em>(not verified)</em>')?></td>

0 commit comments

Comments
 (0)