HTML Editor 3 File Manager authentication
I have a user log in page set which authenticates using Access Rules and Access Page code. Included in the Access Page set is a page containing an HTML Editor instance. All works well up to the point of clicking Browse Server on the Image Properties dialog. Instead of accessing the File Manager I'm redirected to the page I've chosen to use if authentication fails.
The rules-pass code automatically inserted is:
if (!WA_Auth_RulePasses("Ministry Access")){
WA_Auth_RestrictAccess("pgUsers_LogIn.php?pagemsg=Access Denied.");
}
The HelperGroupRulesPHP.php file code section relating to above is:
case "Ministry Access":
$comparisons[0] = array(TRUE, "".((isset($_SESSION['level']))?$_SESSION['level']:"") ."", 1, "ministry");
$comparisons[1] = array(TRUE, "".((isset($_SESSION['level']))?$_SESSION['level']:"") ."", 1, "admin");
break;
I've tested that the session does pass to the page containing the HTML Editor instance but there is where it seems to end. No $_SESSION['level'] can be found (by me anyway) after that resulting in a redirect which bypasses the File Manager.
Any ideas?