diff --git a/inc/ui/collection-edit.php b/inc/ui/collection-edit.php index 9f8da177..3a2b7dfc 100644 --- a/inc/ui/collection-edit.php +++ b/inc/ui/collection-edit.php @@ -117,6 +117,9 @@ if ( $can_write_collection && $editor->IsSubmit() ) { } else { $editor->GetRecord(); + if ( $editor->IsSubmit() ) { + $c->messages[] = i18n('You do not have permission to modify this record.'); + } } if ( $editor->Available() ) { $c->page_title = $editor->Title(translate('Collection').': '.$editor->Value('dav_displayname')); diff --git a/inc/ui/principal-edit.php b/inc/ui/principal-edit.php index ee61bb91..c574d349 100644 --- a/inc/ui/principal-edit.php +++ b/inc/ui/principal-edit.php @@ -158,7 +158,7 @@ if ( $can_write_principal && $editor->IsSubmit() ) { else { $editor->GetRecord(); if ( $editor->IsSubmit() ) { - $post_values = true; + $c->messages[] = i18n('You do not have permission to modify this record.'); } } if ( $editor->Available() ) {