summaryrefslogtreecommitdiffstats
path: root/web/template/account_details.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/template/account_details.php')
-rw-r--r--web/template/account_details.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/account_details.php b/web/template/account_details.php
index a4e20c9c..c4263d74 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -43,7 +43,7 @@
<?= $row["InactivityTS"] ? __("Inactive since") . ' ' . date("Y-m-d H:i", $row["InactivityTS"]) : __("Active"); ?>
</td>
</tr>
- <?php if ($atype == "Trusted User" || $atype == "Developer"): ?>
+ <?php if (has_credential(CRED_ACCOUNT_LAST_LOGIN)): ?>
<tr>
<th><?= __("Last Login") . ":" ?></th>
<td>
@@ -55,7 +55,7 @@
<th>Links:</th>
<td><ul>
<li><a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;SeB=m"><?= __("View this user's packages") ?></a></li>
- <?php if (can_edit_account($atype, $row, uid_from_sid($_COOKIE['AURSID']))): ?>
+ <?php if (can_edit_account($row)): ?>
<li><a href="<?= get_user_uri($row['Username']); ?>edit"><?= __("Edit this user's account") ?></a></li>
<?php endif; ?>
</ul></td>