Commit 88d4559e authored by Izaak Alpert's avatar Izaak Alpert
Browse files

Removed private scope

Change-Id: Ia723321a5cb05deb626d34c7d8d78194e049b1f0
parent 298d3cda3887
......@@ -383,8 +383,6 @@ def solo_owned_groups
end
end
private
def with_defaults
User.defaults.each do |k,v|
self.send("#{k}=",v)
......
......@@ -27,7 +27,7 @@ def create(auth)
password_confirmation: password,
}
user = model.new(opts, as: :admin).with_defaults
user = model.build_user(opts, as: :admin)
user.save!
log.info "(OAuth) Creating user #{email} from login with extern_uid => #{uid}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment