Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Commit 1521dd9

Browse files
author
Sydney Young
committed
fix conditional in import users controller
1 parent efb539f commit 1521dd9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/controllers/import_users_controller.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ def valid_input_file?(imported_users, file) # rubocop:disable all
5757
end
5858

5959
# make sure we have username data (otherwise all will always fail)
60-
unless imported_users.first.keys.include?(:username) ||
61-
env?('CAS_AUTH')
60+
unless imported_users.first.keys.include?(:username) || !env?('CAS_AUTH')
6261
flash[:error] = 'Unable to import CSV file. None of the users will be '\
6362
'able to log in without specifying \'username\' data.'
6463
redirect_to(:back) && return

0 commit comments

Comments
 (0)