fixed bug on allowed_to for global permissions that would only take only one role a user has into consideration and not all

pull/6827/head
Jens Ulferts 14 years ago
parent 31f53ac7d2
commit b42e921112
  1. 2
      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)

Loading…
Cancel
Save