01-08-2017, 07:53 AM
As always, after you post you find out there is somethig else going on, in the root directory index.php file I have added this code
if($user->isLoggedIn()){
Redirect::to('../../access10/main.php');
}
which sends the user to the main page if the user is logged otherwise displays the login screen.
So it seems the code is sending me back to index.php, where can one add some logic to dinamically change the redirection when a user is trying to access a page the user has no permission to see? or better yet is there a way to show an error in the page to inform the user he does not have access to that page? your help is much appreciated,
Happy new Year
Carlos
if($user->isLoggedIn()){
Redirect::to('../../access10/main.php');
}
which sends the user to the main page if the user is logged otherwise displays the login screen.
So it seems the code is sending me back to index.php, where can one add some logic to dinamically change the redirection when a user is trying to access a page the user has no permission to see? or better yet is there a way to show an error in the page to inform the user he does not have access to that page? your help is much appreciated,
Happy new Year
Carlos