mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Permit login with admin users without profiles
This commit is contained in:
parent
418d8b12b7
commit
cd2f97d941
@ -157,7 +157,7 @@ function process_user_login_local ($login, $pass, $api = false) {
|
|||||||
|
|
||||||
$filter = array("id_usuario" => $login);
|
$filter = array("id_usuario" => $login);
|
||||||
$user_profile = db_get_row_filter ("tusuario_perfil", $filter);
|
$user_profile = db_get_row_filter ("tusuario_perfil", $filter);
|
||||||
if(!$user_profile){
|
if(!users_is_admin($login) && !$user_profile){
|
||||||
$mysql_cache["auth_error"] = "User does not have any profile";
|
$mysql_cache["auth_error"] = "User does not have any profile";
|
||||||
$config["auth_error"] = "User does not have any profile";
|
$config["auth_error"] = "User does not have any profile";
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user