Fix bug in prompt reply handling

Change prompt reply value based on 0 == permit and anything else is denied.

Jira issue: wp-956