Possible bug?
I used DataAssist to create pages for database entry and update. I then used SecurityAssist to grant access to those pages only to myself.
I had applied the access rule to those pages, then I had to remove it again, because there was an issue with LogIng. After the LogIn issue was resolved, I reapplied the access behavior.
After doing that, the pages did no longer display (they were blank).
I noticed that one line in the code had dropped to a lower spot, and after moving it up, the pages worked again.
This is the code that produced blank pages:
<?php require_once('../Connections/connSegufix.php'); ?>
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("../accessDenied.php");
}
?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>
And the page worked again after moving the last line up, like this:
<?php require_once('../Connections/connSegufix.php'); ?>
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Administrator")){
WA_Auth_RestrictAccess("../accessDenied.php");
}
?>