Skip to content

Commit

Permalink
fix editable on frontend only
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Feb 14, 2022
1 parent ba5fc69 commit 93b7aed
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -566,7 +566,7 @@ public static function displayFieldOnForm($field)
$app = Factory::getApplication();

// Detect if the field should be shown at all
if ($field->params->get('show_on') == 1 && $app->isClient('administrator'))
if ($field->params->get('show_on') == 1 && $app->isClient('administrator') || $app->isClient('api'))
{
return false;
}
Expand Down

0 comments on commit 93b7aed

Please sign in to comment.