check security level

This commit is contained in:
Roland Gruber 2011-04-25 17:56:34 +00:00
parent c6f8cb40eb
commit caab3a15b5
1 changed files with 6 additions and 0 deletions

View File

@ -169,6 +169,9 @@ class imapAccess extends baseModule {
*/ */
function display_html_attributes() { function display_html_attributes() {
$return = new htmlTable(); $return = new htmlTable();
if (!checkIfWriteAccessIsAllowed()) {
return $return;
}
$prefix = $this->getMailboxPrefix(); $prefix = $this->getMailboxPrefix();
$email = ''; $email = '';
@ -312,6 +315,9 @@ class imapAccess extends baseModule {
*/ */
function process_attributes() { function process_attributes() {
$errors = array(); $errors = array();
if (!checkIfWriteAccessIsAllowed()) {
return $errors;
}
$prefix = $this->getMailboxPrefix(); $prefix = $this->getMailboxPrefix();
$imap_server_address = $this->getServerAddress(); $imap_server_address = $this->getServerAddress();