Extra Queries - Redmine 500 error on Issues
I would like to ask you for your help with the following issue I have encountered while "Advanced sidebar queries" option is enabled in Extra Queries plugin (https://www.redmine.org/plugins/extra_queries). Once the option is checked, no matter what other options are, I`m receiving Redmine 500 error on Issues page in all projects.
Production log shows:
Rendered issues/index.html.erb within layouts/base (26.1ms) Completed 500 Internal Server Error in 73ms (ActiveRecord: 16.9ms) ActionView::Template::Error (undefined method `global_permission_to?' for #<User:0x000000053c91c8>): 21: <%= call_hook(:view_issues_sidebar_issues_bottom) %> 22: <%= call_hook(:view_issues_sidebar_planning_bottom) %> 23: 24: <%= render_sidebar_queries %> 25: <%= call_hook(:view_issues_sidebar_queries_bottom) %> plugins/extra_queries/lib/extra_queries/issues_helper_patch.rb:22:in `render_sidebar_queries_with_eq' app/views/issues/_sidebar.html.erb:24:in `_app_views_issues__sidebar_html_erb__2758027787465424533_70258535412620' app/views/issues/index.html.erb:106:in `block in _app_views_issues_index_html_erb__473373996100567592_36533540' app/views/issues/index.html.erb:105:in `_app_views_issues_index_html_erb__473373996100567592_36533540' app/controllers/issues_controller.rb:77:in `block (2 levels) in index' app/controllers/issues_controller.rb:76:in `index' plugins/extra_queries/lib/extra_queries/issues_controller_patch.rb:19:in `index_with_eq' lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Tested on newly installed Redmine:
Environment: Redmine version 3.2.1.stable Ruby version 2.2.3-p173 (2015-08-18) [x86_64-linux] Rails version 220.127.116.11 Environment production Database adapter Mysql2 SCM: Subversion 1.7.14 Git 18.104.22.168 Filesystem Redmine plugins: a_common_libs 2.1.8 extra_queries 2.0.3
Any suggestions highly appreciated.
I have noticed that not only "A Common Libs: plugin but "Global Roles" plugin is required as well.
With proper plugin requirements all works as expected.
Seems I should not test new stuff at 2am :D