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 16, 2025
1 parent 65a1509 commit bdb2ee7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Changelog
- Improve Likert widget layout
[ThibautBorn]

- 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 bdb2ee7

Please sign in to comment.