From 687cd070f636b21f55dfc44b85a56f1e6f7e724f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Wed, 5 Aug 2020 22:40:22 +0200
Subject: [PATCH] Bugfix

---
 .../app/controllers/redmine_oauth_controller.rb                 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/redmine_omniauth_client/app/controllers/redmine_oauth_controller.rb b/plugins/redmine_omniauth_client/app/controllers/redmine_oauth_controller.rb
index ea7613e..b222be1 100644
--- a/plugins/redmine_omniauth_client/app/controllers/redmine_oauth_controller.rb
+++ b/plugins/redmine_omniauth_client/app/controllers/redmine_oauth_controller.rb
@@ -150,7 +150,7 @@ class RedmineOauthController < AccountController
 
           groups = resources[field_group]
 #          roles = groups[settings['field_roles']]
-          roles = info[settings['field_gtoups']]
+          roles = info[settings['field_groups']]
 
           unless roles == nil || roles == []
             # Prochází každou rolí v SSO acces tokenu
-- 
GitLab