projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30df656
)
Fix permission check when importing data into kronolith
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Mon, 25 Oct 2010 16:32:48 +0000
(12:32 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Mon, 25 Oct 2010 16:32:48 +0000
(12:32 -0400)
kronolith/data.php
patch
|
blob
|
history
diff --git
a/kronolith/data.php
b/kronolith/data.php
index
382fcfc
..
b53fe6e
100644
(file)
--- 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);