From ca22b56148085d9337578cbef0e9c841ce972552 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 8 Jan 2020 20:25:57 +0200 Subject: [PATCH] Rework security tab for pages --- system/blueprints/flex/pages.yaml | 4 ++-- .../pages/partials/{permissions.yaml => security.yaml} | 4 ++-- system/src/Grav/Common/Data/Validation.php | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) rename system/blueprints/pages/partials/{permissions.yaml => security.yaml} (95%) diff --git a/system/blueprints/flex/pages.yaml b/system/blueprints/flex/pages.yaml index 0ffcf9275..fcdffdf10 100644 --- a/system/blueprints/flex/pages.yaml +++ b/system/blueprints/flex/pages.yaml @@ -174,5 +174,5 @@ form: fields: permissions: type: tab - title: PLUGIN_ADMIN.PERMISSIONS - import@: partials/permissions + title: PLUGIN_ADMIN.SECURITY + import@: partials/security diff --git a/system/blueprints/pages/partials/permissions.yaml b/system/blueprints/pages/partials/security.yaml similarity index 95% rename from system/blueprints/pages/partials/permissions.yaml rename to system/blueprints/pages/partials/security.yaml index 3ce6a06b7..5eee7f3ab 100644 --- a/system/blueprints/pages/partials/permissions.yaml +++ b/system/blueprints/pages/partials/security.yaml @@ -2,7 +2,7 @@ form: fields: _site: type: section - title: PLUGIN_ADMIN.SITE + title: PLUGIN_ADMIN.PAGE_ACCESS underline: true fields: @@ -31,7 +31,7 @@ form: _admin: type: section - title: PLUGIN_ADMIN.ADMIN + title: PLUGIN_ADMIN.PAGE PERMISSIONS underline: true fields: diff --git a/system/src/Grav/Common/Data/Validation.php b/system/src/Grav/Common/Data/Validation.php index 2764067fa..ce447106f 100644 --- a/system/src/Grav/Common/Data/Validation.php +++ b/system/src/Grav/Common/Data/Validation.php @@ -725,6 +725,7 @@ class Validation } elseif (Utils::isNegative($val)) { $val = false; } else { + // Ignore invalid bool values. $val = null; } break;