Skip to content

Commit

Permalink
[#68170636] hslu auth controller: don't give access rights to all poo…
Browse files Browse the repository at this point in the history
…ls automatically
  • Loading branch information
nimaai committed Apr 7, 2014
1 parent f08bfe2 commit 1c33f3c
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -60,10 +60,6 @@ def create_user(login, email, firstname, lastname)
user = User.new(:login => login, :email => "#{email}", :firstname => "#{firstname}", :lastname => "#{lastname}")
user.authentication_system = AuthenticationSystem.where(:class_name => 'HsluAuthentication').first
if user.save
# Assign any default roles you want
InventoryPool.all.each do |ip|
user.access_rights.create(:inventory_pool => ip, :role => :customer)
end
return user
else
logger = Rails.logger
Expand Down

0 comments on commit 1c33f3c

Please sign in to comment.