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"); }