summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook/edit.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-20 22:47:24 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-20 22:47:24 +0000
commit2ce86af0590f133c551c1601ce2320e96aade98c (patch)
treea00b12767dbac53dc8509e2369f52c6c45d0780b /roundcubemail/program/steps/addressbook/edit.inc
parent126abdf51ff967eb77555abe0f9868410a6399f5 (diff)
Add support for read-only address book records
git-svn-id: https://svn.roundcube.net/trunk@6023 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/edit.inc')
-rw-r--r--roundcubemail/program/steps/addressbook/edit.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/edit.inc b/roundcubemail/program/steps/addressbook/edit.inc
index 5f8a4ec2c..abed2c566 100644
--- a/roundcubemail/program/steps/addressbook/edit.inc
+++ b/roundcubemail/program/steps/addressbook/edit.inc
@@ -36,8 +36,8 @@ if ($RCMAIL->action == 'edit') {
$OUTPUT->set_env('cid', $record['ID']);
}
- // adding not allowed here
- if ($CONTACTS->readonly) {
+ // editing not allowed here
+ if ($CONTACTS->readonly || $record['readonly']) {
$OUTPUT->show_message('sourceisreadonly');
rcmail_overwrite_action('show');
return;