From 5062ac60a8df199c4fd06f28e4144d72c9e69f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Wed, 4 Apr 2012 14:01:46 +0200 Subject: [PATCH] adding more security to wami records documents --- main/inc/lib/wami-recorder/record_document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/inc/lib/wami-recorder/record_document.php b/main/inc/lib/wami-recorder/record_document.php index 26374a7493..b6439a19d3 100644 --- a/main/inc/lib/wami-recorder/record_document.php +++ b/main/inc/lib/wami-recorder/record_document.php @@ -19,7 +19,7 @@ else { die(); } -if ($wamiuserid!= api_get_user_id()){ +if ($wamiuserid!= api_get_user_id() || api_get_user_id()==0 || $wamiuserid==0) { api_not_allowed(); die(); }