Skip to content

Commit

Permalink
Tenant restore fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsengelen committed Feb 4, 2021
1 parent 6f4d881 commit 53055ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions onedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
<?php
if (isset($_GET['oid'])) $oid = $_GET['oid'];

if (isset($oid) && !isset($rid) && !preg_match('/tenant/', $restoretype)) {
if (isset($oid) && !isset($rid)) {
if (strtolower($authtype) !== 'mfa' && $check === false && strtolower($administrator) === 'yes') {
$org = $veeam->getOrganizationByID($oid);
}
Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions sharepoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
<?php
if (isset($_GET['oid'])) $oid = $_GET['oid'];

if (isset($oid) && !isset($rid) && !preg_match('/tenant/', $restoretype)) {
if (isset($oid) && !isset($rid)) {
if (strtolower($authtype) !== 'mfa' && $check === false && strtolower($administrator) === 'yes') {
$org = $veeam->getOrganizationByID($oid);
}
Expand Down Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions teams.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<?php
if (isset($_GET['oid'])) $oid = $_GET['oid'];

if (isset($oid) && !isset($rid) && !preg_match('/tenant/', $restoretype)) {
if (isset($oid) && !isset($rid)) {
if (strtolower($authtype) !== 'mfa' && $check === false && strtolower($administrator) === 'yes') {
$org = $veeam->getOrganizationByID($oid);
}
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 53055ed

Please sign in to comment.