diff --git a/lib/costs_user_patch.rb b/lib/costs_user_patch.rb index 462e37e800..c4af186730 100644 --- a/lib/costs_user_patch.rb +++ b/lib/costs_user_patch.rb @@ -110,8 +110,10 @@ module CostsUserPatch else roles[role] = users end + roles end + roles end allowing_role = roles.detect(&allowed_for_role)