Open fingolfin opened 11 years ago
I am trying to install it on Redmine 2.3.0, but it's giving me error 500 when I try to open the main Settings "Canned Responses" page. I'm trying to get my server to output more useful logs, but no luck (I'm quite a newbie with RoR). I'm using Ubuntu 12.04, Apache/2.2.22, Phusion_Passenger/3.0.13, Ruby 1.8.7.
Ok, found the log file. I'm seeing this error: NameError (undefined local variable or method `require_admin_if_globalauthorize' for #CannedResponsesController:0x7fae1e7697a0)
Any suggestions to overcome this are very welcome.
I'm experiencing the same issue, and it's sad that it hasn't been resolved after more than a year.
I'm not sure if I did the right change, but it does seem to work at a first glance. I did that change based on similar lines I found in other plugins.
I modified app/controllers/canned_responses_controller.rb, and changed line 6 from: before_filter [:require_admin_if_global, :authorize], :except => :insert to: before_filter :require_admin_if_global, :except => :insert
This fixes the issue for me, though I'm not sure if it messes up the permissions
I just upgraded my Redmine test install to 2.3.0, and this plugin works fine.
Perhaps you can update the README to mention that 2.2.x and 2.3.x should work, and also update the entry in the Redmine plugin directory to say that? Indeed, perhaps make a 0.2.1 release for that purpose?