* only list users who have opted into email
This commit is contained in:
parent
622f750b2d
commit
6afcc84088
|
|
@ -14,7 +14,7 @@ class EmailController < ApplicationController
|
|||
headers['Content-Disposition'] = "attachment; filename=\"user-list.csv\""
|
||||
headers['Content-Type'] ||= 'text/csv'
|
||||
|
||||
@users = User.all
|
||||
@users = User.where(subscribe_email: true)
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Reference in New Issue