From 62b5fe9e49f3f99143768f27c8b43c2c4b8d3256 Mon Sep 17 00:00:00 2001 From: "Aleksander Machniak (Kolab Systems)" Date: Fri, 19 Aug 2011 10:13:14 +0200 Subject: [PATCH 1/2] Don't allow changeing shared folder type, according to ACL (#352) --- plugins/kolab_folders/kolab_folders.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php index de63a207..b4846374 100644 --- a/plugins/kolab_folders/kolab_folders.php +++ b/plugins/kolab_folders/kolab_folders.php @@ -205,6 +205,26 @@ class kolab_folders extends rcube_plugin $ctype = 'mail'; } + // Don't allow changing type of shared folder, according to ACL + if (strlen($mbox)) { + $options = $this->rc->imap->mailbox_info($mbox); + if ($options['namespace'] != 'personal' && !in_array('a', $options['rights'])) { + if (in_array($ctype, $this->types)) + $value = $this->gettext('foldertype'.$ctype); + else + $value = $ctype; + if ($subtype) + $value .= ' ('. ($subtype == 'default' ? $this->gettext('default') : $subtype) .')'; + + $args['form']['props']['fieldsets']['settings']['content']['foldertype'] = array( + 'label' => $this->gettext('folderctype'), + 'value' => $value, + ); + + return $args; + } + } + // Add javascript script to the client $this->include_script('kolab_folders.js'); From 712de455d78f3ba40fad0a94a57641deae069c4d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 19 Aug 2011 14:35:03 +0200 Subject: [PATCH 2/2] Added enctype="multipart/form-data" for event form, fixes upload issue on IE7 (#363) --- plugins/calendar/skins/default/templates/calendar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/skins/default/templates/calendar.html b/plugins/calendar/skins/default/templates/calendar.html index 6b5e6f68..4dfb01be 100644 --- a/plugins/calendar/skins/default/templates/calendar.html +++ b/plugins/calendar/skins/default/templates/calendar.html @@ -86,7 +86,7 @@
-
+