mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-12 10:30:17 +00:00
Provide visual feedback when users cannot edit a page.
This commit is contained in:
parent
c144f31562
commit
1dab49a419
@ -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'));
|
||||
|
||||
@ -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() ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user