Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #157 from VTUL/admins
Browse files Browse the repository at this point in the history
Fixes issue creating admins
  • Loading branch information
tingtingjh authored Nov 14, 2016
2 parents 7345140 + 78a0c8a commit 6d6d722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/datarepo.rake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace :datarepo do
user = User.find_by({email: email})

if user.nil?
user = User.new(email: email, uid: email, provider: 'cas')
user = User.new(email: email, uid: email.split('@')[0], provider: 'cas')
end

user.roles << admin_role
Expand Down

0 comments on commit 6d6d722

Please sign in to comment.