mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 14:03:39 +08:00
DEV: properly require csv dependency
csv dependency is not default loaded, explicitly ask for it when we start parsing csv files.
This commit is contained in:
parent
dbe0111822
commit
34813b643d
|
@ -168,6 +168,8 @@ class InvitesController < ApplicationController
|
|||
end
|
||||
|
||||
def upload_csv
|
||||
require 'csv'
|
||||
|
||||
guardian.ensure_can_bulk_invite_to_forum!(current_user)
|
||||
|
||||
hijack do
|
||||
|
|
Loading…
Reference in New Issue
Block a user