Skip to content

Commit

Permalink
10401 FIX Instant reports are deactivated under the correct permission
Browse files Browse the repository at this point in the history
The instant reports should have always been controlloled with the
<i>General Permissions -> Instant Reports - PDF Export</i>. Nevertheless
until this Werk they were activated under the <i>General Permissions -> Use
reporting</i>. If you used the <i>Use Permissions</i> workaround, please
now change to the correct <i>Instant Reports</i> configuration.

CMK-2964

Change-Id: I7a05e03422e6d76f94fcb397bbc58ff2be7a98d6
  • Loading branch information
Óscar Nájera committed Oct 24, 2019
1 parent 62320a8 commit 3c6685c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .werks/10401
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Title: Instant reports are deactivated under the correct permission
Level: 1
Component: reporting
Class: fix
Compatible: incomp
Edition: cee
State: unknown
Version: 1.5.0p23
Date: 1571757219

The instant reports should have always been controlloled with the
<i>General Permissions -> Instant Reports - PDF Export</i>. Nevertheless
until this werk they were activated under the <i>General Permissions -> Use
reporting</i>. If you used the <i>Use Permissions</i> workaround, please
now change to the correct <i>Instant Reports</i> configuration.
2 changes: 1 addition & 1 deletion web/htdocs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,7 @@ def show_context_links(thisview, datasource, show_filters,
bestof = config.context_buttons_to_show)

# Button for creating an instant report (if reporting is available)
if config.reporting_available() and config.user.may("general.reporting"):
if config.reporting_available() and config.user.may("general.instant_reports"):
html.context_button(_("Export as PDF"), html.makeuri([], filename="report_instant.py"),
"report", class_="context_pdf_export")

Expand Down

0 comments on commit 3c6685c

Please sign in to comment.