-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `level' for nil:NilClass #7
Comments
Same bug Installed latest stable redmine and latest version of plugin Some users getting same error while searching. |
Similar problem here: half of our users get Error 500 when the plugin is installed. Usually these are users that were Reporters at some point and were promoted to Developers. Processing SearchController#index (for 192.1.2.3 at 2010-06-23 18:14:38) [GET] NoMethodError (undefined method Rendering /path/to/redmine/public/500.html (500 Internal Server Error) And here is the output of ruby script/about : About your Redmine plugins |
Any updates on this? Still doesn't work in 1.0.1 (Error 500 for some users) |
This is on redmine r3683 and the latest version of this plugin. I think the error happens when a user does a search of all project wiki's and there is a wiki page under permissions control in a project that the user is not a member of.
A NoMethodError occurred in search#index:
undefined method
level' for nil:NilClass [RAILS_ROOT]/vendor/plugins/redmine_wiki_permissions/lib/wiki_permissions.rb:103:in
user_permission_greater?'Request:
Session:
Environment:
Backtrace:
[RAILS_ROOT]/vendor/plugins/redmine_wiki_permissions/lib/wiki_permissions.rb:103:in
user_permission_greater?' [RAILS_ROOT]/vendor/plugins/redmine_wiki_permissions/lib/wiki_permissions.rb:120:in
can_view?'[RAILS_ROOT]/vendor/plugins/redmine_wiki_permissions/lib/wiki_permissions.rb:13:in
index' [RAILS_ROOT]/vendor/plugins/redmine_wiki_permissions/lib/wiki_permissions.rb:11:in
delete_if'[RAILS_ROOT]/vendor/plugins/redmine_wiki_permissions/lib/wiki_permissions.rb:11:in
index' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in
send'/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in
perform_action_without_filters' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in
call_filters'/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in
perform_action_without_benchmark' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue'/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in
ms' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:10:in
realtime'/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in `ms'
The text was updated successfully, but these errors were encountered: