From eb29a3799cf264390a6169596a3eac4094b1e457 Mon Sep 17 00:00:00 2001 From: Rod Wright Date: Mon, 23 Feb 2026 06:33:16 -0500 Subject: [PATCH] Modified templateselect function to show all users templates in user dropdown if current user is admin --- distfiles/functions.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/distfiles/functions.php b/distfiles/functions.php index 830f0b7..410ac30 100644 --- a/distfiles/functions.php +++ b/distfiles/functions.php @@ -953,8 +953,9 @@ function templateselect($techid, $operation) { // Displays a line enabling selection of a user or global template // $techid is the id number of the current tech - // $operation is one of "add" "edit" "delete" + // $operation is one of "add" "edit" "delete" or NULL global $db; + $isadmin = dblookup($db, "techs", "techid", "admin", $techid); echo "
"; @@ -967,10 +968,19 @@ function templateselect($techid, $operation)  or