Remove unnecessary if statement (#7264)
This commit is contained in:
parent
e416e74c30
commit
036731202e
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2018 - 2022
|
Portions created by the Initial Developer are Copyright (C) 2018-2025
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -39,8 +39,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//change the domain
|
//change the domain
|
||||||
if (!empty($_GET["domain_uuid"]) && is_uuid($_GET["domain_uuid"]) && $_GET["domain_change"] == "true") {
|
if (!empty($_GET["domain_uuid"]) && is_uuid($_GET["domain_uuid"]) && $_GET["domain_change"] == "true" && permission_exists('domain_select')) {
|
||||||
if (permission_exists('domain_select')) {
|
|
||||||
|
|
||||||
//update the domain session variables
|
//update the domain session variables
|
||||||
$domain_uuid = $_GET["domain_uuid"];
|
$domain_uuid = $_GET["domain_uuid"];
|
||||||
|
|
@ -85,7 +84,6 @@
|
||||||
}
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//check permission
|
//check permission
|
||||||
if (permission_exists('domain_all') && permission_exists('domain_view')) {
|
if (permission_exists('domain_all') && permission_exists('domain_view')) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue