diff --git a/init.rb b/init.rb index 2de92c4617..2b424a6d6e 100644 --- a/init.rb +++ b/init.rb @@ -24,9 +24,7 @@ Redmine::Plugin.register :redmine_global_roles do if RAILS_ENV != "test" require_or_load 'global_roles/permission_patch' - project_module :user do - permission :manage_global_roles, {:example => [:say_hello]}, :global => true - end + Redmine::AccessControl.permission(:add_project).global = true else Redmine::AccessControl.permission(:add_project).instance_eval do