summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/show.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-03-20 22:47:24 +0000
committerthomascube <thomas@roundcube.net>2012-03-20 22:47:24 +0000
commit4cf42fde05ff891f6961ba60dbb1c2e4c91c39c6 (patch)
tree75e1520d4dbf92a9b8c0ae9ab3136fa2623d4172 /program/steps/addressbook/show.inc
parenta71a97fa49fb1c7fbe5e042b2cf6239f7372acb4 (diff)
Add support for read-only address book records
Diffstat (limited to 'program/steps/addressbook/show.inc')
-rw-r--r--program/steps/addressbook/show.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/steps/addressbook/show.inc b/program/steps/addressbook/show.inc
index 5086a7bcd..bf65bebe4 100644
--- a/program/steps/addressbook/show.inc
+++ b/program/steps/addressbook/show.inc
@@ -33,6 +33,7 @@ $SOURCE_ID = $source;
// read contact record
if ($cid && ($record = $CONTACTS->get_record($cid, true))) {
+ $OUTPUT->set_env('readonly', $CONTACTS->readonly || $record['readonly']);
$OUTPUT->set_env('cid', $record['ID']);
}