From: Michael J. Rubinsky Date: Mon, 25 Oct 2010 16:32:48 +0000 (-0400) Subject: Fix permission check when importing data into kronolith X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dc70544a10b2beafac548a8994bab1b4c88736cd;p=horde.git Fix permission check when importing data into kronolith --- 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);