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
/printthread.php 16 require_once



UserSpice
Problem with page restriction - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.4 (https://userspice.com/forums/forumdisplay.php?fid=27)
+--- Thread: Problem with page restriction (/showthread.php?tid=1470)



Problem with page restriction - Avtandil - 05-04-2019

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.


RE: Problem with page restriction - mudmin - 05-05-2019

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?


RE: Problem with page restriction - Avtandil - 05-07-2019

(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