mirror of
https://github.com/getgrav/grav.git
synced 2026-07-13 01:22:19 +02:00
Rework security tab for pages
This commit is contained in:
@@ -174,5 +174,5 @@ form:
|
||||
fields:
|
||||
permissions:
|
||||
type: tab
|
||||
title: PLUGIN_ADMIN.PERMISSIONS
|
||||
import@: partials/permissions
|
||||
title: PLUGIN_ADMIN.SECURITY
|
||||
import@: partials/security
|
||||
|
||||
@@ -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:
|
||||
@@ -725,6 +725,7 @@ class Validation
|
||||
} elseif (Utils::isNegative($val)) {
|
||||
$val = false;
|
||||
} else {
|
||||
// Ignore invalid bool values.
|
||||
$val = null;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user