The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
default page for not permitted access
#2
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
  Reply


Messages In This Thread
default page for not permitted access - by yankeesierra - 01-08-2017, 07:53 AM
default page for not permitted access - by mudmin - 01-08-2017, 04:26 PM
default page for not permitted access - by mudmin - 01-16-2017, 02:53 PM
default page for not permitted access - by mudmin - 01-16-2017, 03:06 PM
default page for not permitted access - by mudmin - 01-16-2017, 03:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)