mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 11:26:25 +02:00
Added flex page permissions to the blueprints (for admin)
This commit is contained in:
@@ -17,7 +17,7 @@ config:
|
||||
route: '/accounts'
|
||||
title: PLUGIN_ADMIN.USER_ACCOUNTS
|
||||
icon: fa-user
|
||||
authorize: ['admin.users', 'admin.accounts', 'admin.super']
|
||||
authorize: ['admin.users', 'admin.accounts']
|
||||
priority: 6
|
||||
|
||||
# Admin template type (folder)
|
||||
|
||||
@@ -1,6 +1,67 @@
|
||||
form:
|
||||
fields:
|
||||
permissions:
|
||||
type: text
|
||||
label: PLUGIN_ADMIN.PERMISSIONS
|
||||
placeholder: Placeholder... Coming soon..
|
||||
_site:
|
||||
type: section
|
||||
title: PLUGIN_ADMIN.SITE
|
||||
underline: true
|
||||
|
||||
fields:
|
||||
|
||||
header.visibility_requires_access:
|
||||
type: toggle
|
||||
toggleable: true
|
||||
label: PLUGIN_ADMIN.PAGE_VISIBILITY_REQUIRES_ACCESS
|
||||
help: PLUGIN_ADMIN.PAGE_VISIBILITY_REQUIRES_ACCESS_HELP
|
||||
highlight: 0
|
||||
options:
|
||||
1: PLUGIN_ADMIN.YES
|
||||
0: PLUGIN_ADMIN.NO
|
||||
validate:
|
||||
type: bool
|
||||
|
||||
header.access:
|
||||
type: permissions
|
||||
toggleable: true
|
||||
label: PLUGIN_ADMIN.PAGE_ACCESS
|
||||
help: PLUGIN_ADMIN.PAGE_ACCESS_HELP
|
||||
ignore_empty: true
|
||||
validate:
|
||||
type: array
|
||||
value_type: bool
|
||||
|
||||
_admin:
|
||||
type: section
|
||||
title: PLUGIN_ADMIN.ADMIN
|
||||
underline: true
|
||||
|
||||
fields:
|
||||
|
||||
header.permissions.inherit:
|
||||
type: toggle
|
||||
toggleable: true
|
||||
label: PLUGIN_ADMIN.PAGE_INHERIT_PERMISSIONS
|
||||
help: PLUGIN_ADMIN.PAGE_INHERIT_PERMISSIONS_HELP
|
||||
highlight: 1
|
||||
options:
|
||||
1: PLUGIN_ADMIN.YES
|
||||
0: PLUGIN_ADMIN.NO
|
||||
validate:
|
||||
type: bool
|
||||
|
||||
header.permissions.authors:
|
||||
type: list
|
||||
toggleable: true
|
||||
label: PLUGIN_ADMIN.PAGE_AUTHORS
|
||||
help: PLUGIN_ADMIN.PAGE_AUTHORS_HELP
|
||||
|
||||
fields:
|
||||
value:
|
||||
type: text
|
||||
placeholder: PLUGIN_ADMIN.USERNAME
|
||||
style: vertical
|
||||
|
||||
header.permissions.groups:
|
||||
type: array
|
||||
toggleable: true
|
||||
label: PLUGIN_ADMIN.PAGE_GROUPS
|
||||
help: PLUGIN_ADMIN.PAGE_GROUPS_HELP
|
||||
|
||||
Reference in New Issue
Block a user