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
|
||||
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.
|
||||
|
||||
Contributor(s):
|
||||
|
|
@ -39,8 +39,7 @@
|
|||
}
|
||||
|
||||
//change the domain
|
||||
if (!empty($_GET["domain_uuid"]) && is_uuid($_GET["domain_uuid"]) && $_GET["domain_change"] == "true") {
|
||||
if (permission_exists('domain_select')) {
|
||||
if (!empty($_GET["domain_uuid"]) && is_uuid($_GET["domain_uuid"]) && $_GET["domain_change"] == "true" && permission_exists('domain_select')) {
|
||||
|
||||
//update the domain session variables
|
||||
$domain_uuid = $_GET["domain_uuid"];
|
||||
|
|
@ -85,7 +84,6 @@
|
|||
}
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
//check permission
|
||||
if (permission_exists('domain_all') && permission_exists('domain_view')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue