From 195713cc73fe9b8a86af172444ec651d6c3f9a75 Mon Sep 17 00:00:00 2001 From: John Horne Date: Fri, 13 Oct 2017 11:46:56 +0100 Subject: [PATCH] Allow image files to be uploaded as part of the admin user editing a project. --- editor/uploadImage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/uploadImage.php b/editor/uploadImage.php index 9b778ec894..47a4ec0a3b 100644 --- a/editor/uploadImage.php +++ b/editor/uploadImage.php @@ -50,8 +50,9 @@ function return_bytes($val) { return $val; } -if (!isset($_SESSION['toolkits_logon_username'])) +if (!isset($_SESSION['toolkits_logon_username']) && !is_user_admin()) { + _debug("Session is invalid or expired"); die("Session is invalid or expired"); }