Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Commit

Permalink
Update lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
thorin committed Jan 9, 2013
1 parent 65e3ca5 commit f520515
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def sync_groups(user)
end

changes = groups_changes(user)
current_groups = user.groups.all.map(&:name)
current_groups = user.groups.map(&:name)
user.groups << changes[:added].reject {|g| current_groups.include?(g) }.map do |groupname|
if create_groups?
group = Group.find_or_create_by_lastname(groupname, :auth_source_id => self.id)
Expand Down

0 comments on commit f520515

Please sign in to comment.