fixed bug caused by caching permissions

pull/6827/head
Jens Ulferts 14 years ago
parent ad7b1f65a1
commit 0ccc04f477
  1. 2
      lib/global_roles/access_control_patch.rb

@ -13,7 +13,7 @@ module GlobalRoles
module ClassMethods
def available_project_modules_with_no_global
@available_project_modules ||= @permissions.reject{|p| p.global? }.collect(&:project_module).uniq.compact
@available_project_modules = @permissions.reject{|p| p.global? }.collect(&:project_module).uniq.compact
available_project_modules_without_no_global
end

Loading…
Cancel
Save