This forum is archived. Posts are preserved for historical reference. For current help, join us on Discord.

Problem with page restriction

In UserSpice 4.4 · Started by Avtandil on 2019-05-04 5:27 pm · 7193 views · 2 replies

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.

[color=#c586c0]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();
[/color]
I'm new in this system.
Thank you in advance.
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?

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 :)