-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Fix widget maximize operation by checking other condition in addition to linked MiqGroup #2069
[WIP] Fix widget maximize operation by checking other condition in addition to linked MiqGroup #2069
Conversation
…esult id saved in session.
7d8e9d2
to
672507d
Compare
…_id, instead group name saved as part of value in miq_report_result.userid column (example: widgets). IN this case we need to parse that column to check if vurrent user has access right to generated data https://bugzilla.redhat.com/show_bug.cgi?id=1492174
672507d
to
6c1d97f
Compare
@miq-bot remove-label wip |
Checked commits yrudman/manageiq-ui-classic@e5d8e1c~...6c1d97f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
rr = MiqReportResult.for_user(current_user).find(search_id) | ||
rr = MiqReportResult.find(search_id) | ||
unless rr.available_to_user?(current_user) | ||
add_flash(_("Current user does not permission to view report data id: #{search_id}"), :error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yrudman typo missing "have" in the flash message
@yrudman do you have a screenshot of screen showing flash message "Current user does not have permission to view report data id: xxx" |
This PR is follow-up to #1627, #1827
blocked by:
MiqReportResult#available_to_user?
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1492174
Issue:
Full Screen
,PDF Download
, andZoom in
operations on widget in Dashboard throw error. Reason for error - miq_group_id column which driving access inMiqReportResult.for_user(user)
was not setSolution: Check other access rules in addition to linked group
Before:
After:
\cc @gtanzillo