This topic is locked
[SOLVED]

 Permissions failure

1/28/2020 1:55:07 PM
PHPRunner General questions
S
Steve Seymour author

Is there a way to disable the menu (Welcome Page) for a group of users ?

The Permissions settings doesn't honor unchecking <global> menu, it still allows menu access when the house icon (home) is clicked
In the javascript onload event for the menu (welcome) page, we can redirect to another page, but it still briefly shows the menu (welcome page) page.

A
acpan 1/29/2020

Try the security api:
in Welcome Page's Before Processed Event:



$userData = Security::getUserGroup();

// echo $userData;

if ( $userData != "admins")

{

header("Location: redirect_to_user_pages_list.php");

}
S
Steve Seymour author 1/29/2020



Try the security api:
in Welcome Page's Before Processed Event:



$userData = Security::getUserGroup();

// echo $userData;

if ( $userData != "admins")

{

header("Location: redirect_to_user_pages_list.php");

}



Thank you ACPAN

That works exactly as I need.

Now the house icon can be redirected to what-ever page we want.
Cheers.