Posted on : 2021-10-11 10:50:51 View Type: public
Steve Lavrador
Hello, I need to find a way to allow multiple user types per user ID/email.
How to implement it ?
Thank you & best regards,
Steve
Hello, I need to find a way to allow multiple user types per user ID/email.
How to implement it ?
Thank you & best regards,
Steve
Hey i think this would be not possible in current structure of Database.
User's type is saved in User table so it can be only 1 or single user type for now.
In case you want to make it multiple user types you need to customize this whole structure and if you ask us to do this we may charge you about 50$ to to do this. Otherwise you need php knowledge to do this yourself we can guide you how you can do this however.
But i would recommend you to use
<?php
include('system_load.php');
//This loads system.
authenticate_user('all');
?>
In start of files Authenticate_user all >> so all type of loged in users can use those files which you want to allow to multiple users.
You can also add
after authenticate_user("all");
if($_SESSION["user_type]" == "mytype") {
return;
//not allowed for this user type.
}
This way you can reduce access to that file or page for the specefic user and let all other user types access that. i hope you understand thanks.