Load a saved story into the form for editors only.

Visitors could post an id to /publish and read the author's email address.
This commit is contained in:
tim
2026-09-26 15:27:51 +02:00
parent 8f4851e576
commit bf36ec25fd
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ $search = get_search_args();
if ($action == 'preview')
$result = get_post_data(TRUE);
else if ($action && is_numeric($id))
// Only editors load a saved story; it holds the author's email address
else if ($is_admin && $action && is_numeric($id))
$result = get_query($id);
if (isset($result) && is_array($result))
extract($result[0], EXTR_OVERWRITE);