Adjust the voicemail_authorized if statement.

This commit is contained in:
Mark Crane 2013-12-04 17:24:44 +00:00
parent 2a7d819f64
commit 7338cbc9af
1 changed files with 3 additions and 3 deletions

View File

@ -215,14 +215,14 @@
if (session:ready()) then
--check the voicemail password
if (voicemail_id) then
if (voicemail_authorized == nil) then
check_password(voicemail_id, password_tries);
else
if (voicemail_authorized) then
if (voicemail_authorized == "true") then
--skip the password check
else
check_password(voicemail_id, password_tries);
end
else
check_password(voicemail_id, password_tries);
end
else
check_password(voicemail_id, password_tries);