From b42e9211125389cc62ff60802f4be1f7088a2fc5 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Thu, 3 Feb 2011 12:36:02 +0100 Subject: [PATCH] fixed bug on allowed_to for global permissions that would only take only one role a user has into consideration and not all --- lib/costs_user_patch.rb | 2 ++ 1 file changed, 2 insertions(+) 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)