Closed numeroteca closed 11 years ago
This is fixed for logged in users now. But if current_user is nil, it still breaks.
Anywhere current_user.admin is checked, we first need to check to see if current_user.nil? is true. I can look at this Monday, but it should be a quick fix if anyone else has time.
It works locally for logged in and not logged in users, but doesn't work in de. It breaks for logged in users now.
Showing /var/www/pageonex/dev/app/views/threads/index.html.erb where line #39 raised: undefined method `admin' for #User:0x00000004d6a430
When going to http://production.pageonex.com/threads/ it gives an error in the logs:
Might be related to the migration that needs to be run.