Hello, so I’m having some trouble with the page restriction (using the Security Provider Enforcer).
I had everything working right with the lvl1 user permission, so when I finished the administrator page, I created a new permission named AuthADMIN. But the admin page is redirecting to the restriction page constantly.
This is the security provider info
This is the code for the admin page
<?php
require('../dmxConnectLib/dmxConnect.php');
$app = new \lib\App();
$app->exec(<<<'JSON'
{
"steps": [
"Connections/connection1",
"SecurityProviders/loginsecurity",
{
"module": "auth",
"action": "restrict",
"options": {"permissions":"AuthADMIN","loginUrl":"../index.php","forbiddenUrl":"../inicio.php","provider":"loginsecurity"}
}
]
}
JSON
, TRUE);
?>
Of course the UserAuth value for the user I’m using is “adm”