Fix so "Create filter" option does not show up when Filters menu is disabled (#6723)

pull/6724/head
Aleksander Machniak 6 years ago
parent ccb70116f1
commit 3562d7ffa6

@ -17,6 +17,7 @@ CHANGELOG Roundcube Webmail
- Elastic: Fix non-working pretty selects in Chrome browser (#6705) - Elastic: Fix non-working pretty selects in Chrome browser (#6705)
- Managesieve: Fix bug where global includes were requested for vacation (#6716) - Managesieve: Fix bug where global includes were requested for vacation (#6716)
- Managesieve: Use RFC-compliant line endings, CRLF instead of LF (#6686) - Managesieve: Use RFC-compliant line endings, CRLF instead of LF (#6686)
- Managesieve: Fix so "Create filter" option does not show up when Filters menu is disabled (#6723)
- Fix bug in HTML parser that could cause missing text fragments when there was no head/body tag (#6713) - Fix bug in HTML parser that could cause missing text fragments when there was no head/body tag (#6713)
- Fix bug where HTML messages with a xml:namespace tag were not rendered (#6697) - Fix bug where HTML messages with a xml:namespace tag were not rendered (#6697)
- Fix TinyMCE download location (#6694) - Fix TinyMCE download location (#6694)

@ -1,5 +1,6 @@
- Use RFC-compliant line endings, CRLF instead of LF (#6686) - Use RFC-compliant line endings, CRLF instead of LF (#6686)
- Fix bug where global includes were requested for vacation (#6716) - Fix bug where global includes were requested for vacation (#6716)
- Fix so "Create filter" option does not show up when Filters menu is disabled (#6723)
* version 9.2 [2018-11-08] * version 9.2 [2018-11-08]
----------------------------------------------------------- -----------------------------------------------------------

@ -156,6 +156,13 @@ class managesieve extends rcube_plugin
return; return;
} }
$vacation_mode = (int) $this->rc->config->get('managesieve_vacation');
$forward_mode = (int) $this->rc->config->get('managesieve_forward');
if ($vacation_mode == 2 || $forward_mode == 2) {
return;
}
// include js script and localization // include js script and localization
$this->init_ui(); $this->init_ui();

Loading…
Cancel
Save