diff --git a/distfiles/templates.php b/distfiles/templates.php index 8282715..87829df 100644 --- a/distfiles/templates.php +++ b/distfiles/templates.php @@ -162,6 +162,12 @@ if ($usertemplateid) { $loadtemplate = NULL; } +// determine original owner of template +$orig_owner=dblookup($db, "notetemplates","templateid","tech",$templateid); +if ($efftechid != NULL && $efftechid != $orig_owner) { + $operation="add"; +} + if ($operation == "add") { if ($submit) { if ($note) {