From 53055edfcc6e85e0fd9290f74ce5bb5380a8350a Mon Sep 17 00:00:00 2001 From: nielsengelen Date: Thu, 4 Feb 2021 11:39:16 +0100 Subject: [PATCH] Tenant restore fix --- onedrive.php | 4 ++-- sharepoint.php | 4 ++-- teams.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/onedrive.php b/onedrive.php index 53e33e2..f4c4451 100644 --- a/onedrive.php +++ b/onedrive.php @@ -199,7 +199,7 @@ getOrganizationByID($oid); } @@ -238,7 +238,7 @@ } if (!isset($_SESSION['rid'])) { - if (isset($oid) && !empty($oid)) { + if (isset($oid) && !empty($oid) && !preg_match('/tenant/', $restoretype)) { $users = $veeam->getLicensedUsers($oid); $repo = $veeam->getOrganizationRepository($oid); $usersarray = array(); diff --git a/sharepoint.php b/sharepoint.php index 9a081f6..f296dd7 100644 --- a/sharepoint.php +++ b/sharepoint.php @@ -238,7 +238,7 @@ getOrganizationByID($oid); } @@ -277,7 +277,7 @@ } if (!isset($_SESSION['rid'])) { - if (isset($oid) && !empty($oid)) { + if (isset($oid) && !empty($oid) && !preg_match('/tenant/', $restoretype)) { $org = $veeam->getOrganizationByID($oid); $repo = $veeam->getOrganizationRepository($oid); diff --git a/teams.php b/teams.php index 7a69cbb..a26538e 100644 --- a/teams.php +++ b/teams.php @@ -173,7 +173,7 @@ getOrganizationByID($oid); } @@ -212,7 +212,7 @@ } if (!isset($_SESSION['rid'])) { - if (isset($oid) && !empty($oid)) { + if (isset($oid) && !empty($oid) && !preg_match('/tenant/', $restoretype)) { $org = $veeam->getOrganizationByID($oid); $repo = $veeam->getOrganizationRepository($oid);