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:
nramon 2018-04-20 08:19:13 +02:00
commit 0e003f9807
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ function process_user_login_local ($login, $pass, $api = false) {
$filter = array("id_usuario" => $login);
$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";
$config["auth_error"] = "User does not have any profile";
return false;