From 069832459509c984698bd8aae10c2772da9f096b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 6 Dec 2015 08:14:30 +0100 Subject: [PATCH] Add init user also to chat role. --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index dd0ac8d9d..5477ef526 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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|