From 03f10f2d2d02b187772f5dbd7e4496dffdfa28a2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 22 Aug 2019 11:03:23 -0600 Subject: [PATCH] Update domains.php --- core/domains/domains.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/domains/domains.php b/core/domains/domains.php index a4ff4ab2a4..ae9b415cbc 100644 --- a/core/domains/domains.php +++ b/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"); }