Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Feb 3, 2025
2 parents cfd5333 + f601851 commit 8bdada5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
versions: 3.8.16
command: pyenv -v
- name: Cache eggs
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-eggs
with:
Expand All @@ -43,7 +43,7 @@ jobs:
versions: 3.8.16
command: pyenv -v
- name: Cache eggs
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-eggs
with:
Expand Down
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ Changelog
1.16.0 (2024-12-19)
-------------------

- Overrided `ContactBaseBatchActionForm.available` method to handle anonymous search correctly.
- Overrided `ContactBaseBatchActionForm.available` method to handle anonymous
search correctly.
[sgeulette]
- Check again `self.do_apply` in `BaseBatchActionForm.handleApply` to avoid
nasty behaviors.
[gbastien]

1.15 (2024-04-10)
-----------------
Expand Down
3 changes: 3 additions & 0 deletions src/collective/eeafaceted/batchactions/browser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def update(self):
@button.buttonAndHandler(_(u'Apply'), name='apply', condition=lambda fi: fi.do_apply)
def handleApply(self, action):
""" """
if not self.do_apply:
raise Unauthorized

data, errors = self.extractData()
if errors:
self.status = self.formErrorsMessage
Expand Down

0 comments on commit 8bdada5

Please sign in to comment.