summaryrefslogtreecommitdiff
path: root/includes/sys_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_user.php')
-rw-r--r--includes/sys_user.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/sys_user.php b/includes/sys_user.php
index 88002706..231b2b62 100644
--- a/includes/sys_user.php
+++ b/includes/sys_user.php
@@ -1,5 +1,13 @@
<?php
+function User_Nick_render($user_source) {
+ global $user, $privileges;
+ if($user['UID'] == $user_source['UID'] || in_array('user_shifts_admin', $privileges))
+ return '<a href="' . page_link_to('user_myshifts') . '&amp;id=' . $user_source['UID'] . '">' . htmlspecialchars($user_source['Nick']) . '</a>';
+ else
+ return htmlspecialchars($user_source['Nick']);
+}
+
/**
* Available T-Shirt sizes