Skip to content

Commit

Permalink
Merge pull request #30 from eea/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
olimpiurob authored Feb 14, 2022
2 parents 5821289 + 0994450 commit d8e600a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
23 changes: 12 additions & 11 deletions Products/Reportek/EnvelopeCustomDataflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,17 +1538,18 @@ def get_previous_deliveries(self):
}
# Get all the company collections
colls = self.get_company_collections()

# Filter out collections when there's no Add Envelopes permission
for k in envs.keys():
c_colls = [col for col in colls.get(k, [])
if getSecurityManager().checkPermission('Add Envelopes',
col)]
for col in c_colls:
if col.company_id == self.company_id:
envs[k] = envs[k] + \
[env for env in col.objectValues(
'Report Envelope')]
if colls:
# Filter out collections when there's no Add Envelopes permission
for k in envs.keys():
c_colls = [col for col in colls.get(k, [])
if getSecurityManager().checkPermission(
'Add Envelopes',
col)]
for col in c_colls:
if col.company_id == self.company_id:
envs[k] = envs[k] + \
[env for env in col.objectValues(
'Report Envelope')]

return envs

Expand Down
2 changes: 1 addition & 1 deletion Products/Reportek/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.12
4.13
1 change: 1 addition & 0 deletions Products/Reportek/zpt/envelope/macros.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<tal:block define="dummy_var python:request.RESPONSE.setHeader('Refresh','60')" />
<a tal:condition="python: context.is_cancellable(item.getId())"
tal:attributes="href string:cancel_activity?workitem_id=${item/id}"
class="cancel-activity"
onclick="confirm_cancel(event)" i18n:translate="">Cancel</a>
</tal:block>
<tal:block condition="not:python:item.actor == 'openflow_engine'"
Expand Down

0 comments on commit d8e600a

Please sign in to comment.