FIX: download CSV feature was not working for group reports

This commit is contained in:
Arpit Jalan 2020-01-21 15:16:15 +05:30
parent aebd8dc6e4
commit 16ea1c55a9
1 changed files with 1 additions and 0 deletions

View File

@ -1085,6 +1085,7 @@ SQL
end end
end end
skip_before_action :check_xhr, only: [:group_reports_run]
def group_reports_run def group_reports_run
return raise Discourse::NotFound unless guardian.user_can_access_query?(group, query) return raise Discourse::NotFound unless guardian.user_can_access_query?(group, query)