OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/lib/global_roles/users_controller_patch.rb

24 lines
510 B

require_dependency "users_controller"
module GlobalRoles
module UsersControllerPatch
def self.included(base) # :nodoc:
base.send(:include, InstanceMethods)
base.class_eval do
unloadable
alias_method_chain :edit, :global_roles
end
end
module InstanceMethods
def edit_with_global_roles
edit_without_global_roles
@global_roles = GlobalRole.all
end
end
end
end
UsersController.send(:include, GlobalRoles::UsersControllerPatch)