Fixed an NPE in ApplicationController#authorized?
This commit is contained in:
parent
ba9232bbde
commit
3285737917
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def authorized?
|
def authorized?
|
||||||
|
@web.nil? or
|
||||||
@web.password.nil? or
|
@web.password.nil? or
|
||||||
cookies['web_address'] == @web.password or
|
cookies['web_address'] == @web.password or
|
||||||
password_check(@params['password'])
|
password_check(@params['password'])
|
||||||
|
|
Loading…
Reference in a new issue