Skip to content

Commit

Permalink
allow editors to remove a fieldset in easyform
Browse files Browse the repository at this point in the history
context: this permission wasn't set since the delete-fieldset option
was added to plone.schemaeditor
  • Loading branch information
ThibautBorn authored and gotcha committed Jan 13, 2025
1 parent 365a838 commit 0dd5292
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
4.3.1 (unreleased)
------------------

- Nothing changed yet.
- Allow editors to remove fieldset
[ThibautBorn]


4.3.0 (2024-12-13)
Expand Down
7 changes: 7 additions & 0 deletions src/collective/easyform/browser/fields.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
class="plone.schemaeditor.browser.schema.add_fieldset.FieldsetAddFormPage"
layer="..interfaces.IEasyFormLayer"
/>
<browser:page
name="delete-fieldset"
for="collective.easyform.interfaces.IEasyFormFieldsContext"
permission="cmf.ModifyPortalContent"
class="plone.schemaeditor.browser.schema.delete_fieldset.DeleteFieldset"
layer="..interfaces.IEasyFormLayer"
/>
<browser:page
name="edit"
for="collective.easyform.interfaces.IEasyFormFieldContext"
Expand Down

0 comments on commit 0dd5292

Please sign in to comment.