Skip to content

Commit

Permalink
Review response: corrected checking if any record is present
Browse files Browse the repository at this point in the history
  • Loading branch information
romanblanco committed Jul 12, 2017
1 parent 188f238 commit f362fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/performance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def date_time_running_msg(typ, timestamp)
# Send error message if record is found and authorized, else return the record
def perf_menu_record_valid(model, id)
record = find_record_with_rbac(model.constantize, id)
if record.empty?
if record.present?
add_flash(_("Can't access selected record"))
end
unless @flash_array.blank?
Expand Down

0 comments on commit f362fd5

Please sign in to comment.