Permit login with admin users without profiles

This commit is contained in:
fermin831 2018-04-19 18:05:47 +02:00
parent 418d8b12b7
commit cd2f97d941
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;