Quellcode durchsuchen

Update domains.php

FusionPBX vor 6 Jahren
Ursprung
Commit
1cd1a0611d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      core/domains/domains.php

+ 1 - 1
core/domains/domains.php

@@ -29,7 +29,7 @@
 	require_once "resources/check_auth.php";
 
 //redirect admin to app instead
-	if (file_exists($_SERVER["PROJECT_ROOT"]."/app/domains/app_config.php") && !permission_exists('domain_all')) {
+	if (file_exists($_SERVER["PROJECT_ROOT"]."/app/domains/app_config.php") && !permission_exists('domain_all') && !is_cli()) {
 		header("Location: ".PROJECT_PATH."/app/domains/domains.php");
 	}