From b0c748d3b430cac56bfe6ca42b67fd7d5cd5451d Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 21 Apr 2011 08:20:28 +0000 Subject: - Set proper readonly state of default address book according to real readonly variable value (#1487878) git-svn-id: https://svn.roundcube.net/trunk@4682 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcmail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/include/rcmail.php') diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 122dbefdd..9eb11e6c5 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -383,7 +383,7 @@ class rcmail 'id' => '0', 'name' => rcube_label('personaladrbook'), 'groups' => $this->address_books['0']->groups, - 'readonly' => false, + 'readonly' => $this->address_books['0']->readonly, 'autocomplete' => in_array('sql', $autocomplete) ); } @@ -411,7 +411,7 @@ class rcmail if ($writeable && $item['readonly']) unset($list[$idx]); } - + return $list; } -- cgit v1.2.3