Add init user also to chat role.

This commit is contained in:
Martin Edenhofer 2015-12-06 08:14:30 +01:00
parent 36ed006f29
commit 0698324595

View file

@ -85,7 +85,7 @@ class UsersController < ApplicationController
group_ids = []
role_ids = []
if count <= 2
Role.where( name: [ Z_ROLENAME_ADMIN, 'Agent'] ).each { |role|
Role.where( name: [ Z_ROLENAME_ADMIN, 'Agent', 'Chat'] ).each { |role|
role_ids.push role.id
}
Group.all().each { |group|