Skip to content

Commit

Permalink
fix: update user setting (#4169)
Browse files Browse the repository at this point in the history
* fix: update user setting
  • Loading branch information
tikhanovichA authored Jan 17, 2025
1 parent adf48ed commit b07a105
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ private function isBlockedForModification(core_kernel_classes_Property $property
return false;
}

if ($property->getWidget()->getUri() === tao_helpers_form_elements_Readonly::WIDGET_ID) {
if (
$property->getWidget()
&& $property->getWidget()->getUri() === tao_helpers_form_elements_Readonly::WIDGET_ID
) {
return true;
}

Expand Down

0 comments on commit b07a105

Please sign in to comment.