About Roles Admin

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
tavitooo
 
 
Posts: 16
Joined: Sun Apr 12, 2020 7:34 am

About Roles Admin

Post by tavitooo »

I have a small web page and I want to know how according to the type of user it sent to one page and if it is another user go to another specific page. And in the administrator module is possible create more users assigned to a specific page.
For example, in Log In, when an user enters with an account, they should go to a page specified according to the type of user.

For example In my page called: "listado.php" I add "User Redirect" and it redirect with a specific user!! but what happen when create an new user?. because with user "vendedor" it go to page "vesti_visual" but if is a new user how to add other user in this secction "Redirect Rules"?.
Image


In this section I think is ok I used a Role only access users with roles "Por Mayor".
Image

But in this section Log in How do redirect an user depending on their role?.
Image

Also is there a way to create modify new super administrators?

Any tutorial about roles?.

Thanks
User avatar
Pablo
 
Posts: 23393
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About Roles Admin

Post by Pablo »

With the 'User redirect' you can redirect users to a specific page.
This object is usually on the 'destination page' as configured in the login form.
tavitooo
 
 
Posts: 16
Joined: Sun Apr 12, 2020 7:34 am

Re: About Roles Admin

Post by tavitooo »

Yes in the page "User redirect" instead of "username" I changed it to "role" and now is working and now I can create new users with a specific role and it redirect automatic an specific page:

if ($_SESSION['role'] == 'Por Menor')
{
header('Location: ./users/vesti_visual.php');
exit;
}
if ($_SESSION['role'] == 'PorMayor')
{
header('Location: ./users/vesti_mayor.php');
exit;
}
User avatar
Pablo
 
Posts: 23393
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: About Roles Admin

Post by Pablo »

In the 'protected page' object you can select whihc users roles are allowed for the page.
Post Reply