Adjust the voicemail_authorized if statement.

This commit is contained in:
Mark Crane
2013-12-04 17:24:44 +00:00
parent 73096006a2
commit b01ccb2ebb

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);