Fix javascript denial logic, fixes #28

This commit is contained in:
Jay Wood
2015-08-28 20:38:13 -04:00
parent 28d9b0830c
commit 3887dc2e38
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ window.cwv3 = ( function( window, document, $ ){
};
app.dialog_switch = function(){
if( 'denied' === app.cookie_data ){
if( 'denied' === app.cookie_data && '' !== cwv3_params.denial_enabled ){
app.$auth.remove(); // Remove the main dialog
if( 'redirect' === cwv3_params.denial_method ){
window.location.replace( app.redirect_url );