Fixed missing special groups authors and defaults for pages

This commit is contained in:
Matias Griese
2020-11-09 15:20:20 +02:00
parent a8bd391b78
commit c6bde87cf6
2 changed files with 8 additions and 2 deletions

View File

@@ -4,9 +4,10 @@
1. [](#improved)
* Auto-link a plugin/theme license in details if it starts with `http`
* Allow to fallback to `docs:` instead of `readme:`
* Forward a `sid` to GPM when downloading a premium package
* Forward a `sid` to GPM when downloading a premium package
1. [](#bugfix)
* Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955)
* Fixed missing special groups `authors` and `defaults` for pages
# v1.10.0-rc.17
## 10/07/2020

View File

@@ -30,7 +30,12 @@
update: { letter: 'U', title: 'Update', value: '' },
delete: { letter: 'D', title: 'Delete', value: '' }
} %}
{% set optionsList = [] %}
{% if object.hasFlexFeature('page') %}
{% set optionsList = [{text: 'Page Authors (Special)', value: 'authors'}, {text: 'Default ACL (Special)', value: 'defaults'}] %}
{% else %}
{% set optionsList = [] %}
{% endif %}
{% for group in groups.index %}
{% set optionsList = optionsList|merge([{ text: group.readableName ?? group.groupname, value: group.groupname }]) %}
{% endfor %}