From dc70544a10b2beafac548a8994bab1b4c88736cd Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 25 Oct 2010 12:32:48 -0400 Subject: [PATCH] Fix permission check when importing data into kronolith --- kronolith/data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/data.php b/kronolith/data.php index 382fcfc0b..b53fe6e36 100644 --- a/kronolith/data.php +++ b/kronolith/data.php @@ -204,7 +204,7 @@ if (!$error && $import_format) { if ($actionID == Horde_Data::IMPORT_FILE) { $cleanup = true; try { - if (!in_array($_SESSION['import_data']['import_cal'], Kronolith::listCalendars(Horde_Perms::EDIT))) { + if (!in_array($_SESSION['import_data']['import_cal'], array_keys(Kronolith::listCalendars(Horde_Perms::EDIT)))) { $notification->push(_("You do not have permission to add events to the selected calendar."), 'horde.error'); } else { $next_step = $data->nextStep($actionID, $param); -- 2.11.0