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);
|
||||
$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;
|
||||
|
|
Loading…
Reference in New Issue