Fixed an NPE in ApplicationController#authorized?

This commit is contained in:
Alexey Verkhovsky 2006-01-23 06:56:30 +00:00
parent ba9232bbde
commit 3285737917

View file

@ -169,6 +169,7 @@ class ApplicationController < ActionController::Base
end
def authorized?
@web.nil? or
@web.password.nil? or
cookies['web_address'] == @web.password or
password_check(@params['password'])