mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch '2126-Bloqueo-o-error-de-acceso-a-usuarios-sin-permisos-dev-2' into 'develop'
Permit login with admin users without profiles See merge request artica/pandorafms!1440
This commit is contained in:
commit
0e003f9807
@ -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