Skip to content

Commit

Permalink
[api] remove reference to "User" role for LDAP (issue 820)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 25, 2014
1 parent 331117e commit 5ae5084
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/api/app/controllers/application_controller.rb
Expand Up @@ -148,8 +148,6 @@ def extract_ldap_user
newuser.state = User.states['confirmed']
newuser.state = User.states['unconfirmed'] if ::Configuration.registration == "confirmation"
newuser.adminnote = "User created via LDAP"
user_role = Role.find_by_title("User")
newuser.roles << user_role

logger.debug( "saving new user..." )
newuser.save
Expand Down
1 change: 0 additions & 1 deletion src/api/db/seeds.rb
Expand Up @@ -14,7 +14,6 @@

puts "Seeding roles table..."
admin_role = Role.where(title: "Admin").first_or_create global: true
#user_role = Role.where(title: "User").first_or_create, global: true
maintainer_role = Role.where(title: "maintainer").first_or_create
bugowner_role = Role.where(title: "bugowner").first_or_create
reviewer_role = Role.where(title: "reviewer").first_or_create
Expand Down

0 comments on commit 5ae5084

Please sign in to comment.