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.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/template/account_details.php b/web/template/account_details.php
index 02ed32b..680a52e 100644
--- a/web/template/account_details.php
+++ b/web/template/account_details.php
@@ -51,9 +51,12 @@
</tr>
<tr>
<th>Links:</th>
- <td>
- <a href="<?= get_uri('/packages/'); ?>?K=<?= $row['Username'] ?>&amp;SeB=m"><?= __("View this user's packages") ?></a>
- </td>
+ <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']))): ?>
+ <li><a href="<?= get_user_uri($row['Username']); ?>edit"><?= __("Edit this user's account") ?></a></li>
+ <?php endif; ?>
+ </ul></td>
</tr>
</table>
</td>