Skip to content

Commit

Permalink
Update business.php
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonmoura committed Jan 18, 2023
1 parent 38c1e53 commit 0eac213
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions client/business.php
Expand Up @@ -20,12 +20,11 @@
exit();
}
} else {
$fl = true; // force logout
if ( $_REQUEST["action"] == 'authentication' ) $fl = false;
if ( $_REQUEST["action"] == 'servicesplatform' ) $fl = false;
if ( $_REQUEST["action"] == 'mydocuments' and $public ) $fl = false;
if ( $_REQUEST["action"] == 'suggesteddocs' and $public ) $fl = false;
if ( $fl ) $_REQUEST["action"] = 'logout';
// force logout
$action = ( in_array($_REQUEST["action"], 'mydocuments', 'suggesteddocs') and $public ) ? $_REQUEST["action"].'_public' : $_REQUEST["action"];
if ( !in_array($action, array('authentication', 'servicesplatform', 'mydocuments_public', 'suggesteddocs_public')) ) {
$_REQUEST["action"] = 'logout';
}
}

switch($_REQUEST["action"]){
Expand Down

0 comments on commit 0eac213

Please sign in to comment.