The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Problem with page restriction
#1
Hi all
i have created separate folder and added it in z_us_root.php. It's working well, but when i add new page in new folder and then restricting from permission level it's not working. Also i have created new permission leve named "Driver" I red that in pages must be code included. how can i check is or not this user in Driver group.

require_once '../users/init.php';
if(isset($user) && $user->isLoggedIn()){
 //Redirect::to($us_url_root.'users/account.php');
}else{
 Redirect::to($us_url_root.'users/login.php');
}
die();

I'm new in this system.
Thank you in advance.
  Reply
#2
Hi. Sorry. I thought I responded to this yesterday. Not sure what happened to my post. Is that new folder in the same folder as users and usersc?

Are the pages that you add to that new folder showing up under "pages" on the left side of the dashboard?

Do these pages have the securePage function line and the init.php line in them?
  Reply
#3
(05-05-2019, 12:16 PM)mudmin Wrote: Hi. Sorry. I thought I responded to this yesterday. Not sure what happened to my post.  Is that new folder in the same folder as users and usersc?

Are the pages that you add to that new folder showing up under "pages" on the left side of the dashboard?

Do these pages have the securePage function line and the init.php line in them?

thanks for answer i resolve the problem Smile
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)