Skip to content

Commit 5889523

Browse files
committed
Adding to retrieval of current properties
1 parent c85f907 commit 5889523

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

src/Commands/Model/SPOTenant.cs

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ public class SPOTenant
250250
public bool? SharePointAddInsDisabled { private set; get; }
251251
public SharingCapabilities? OneDriveSharingCapability { private set; get; }
252252
public string[] GuestSharingGroupAllowListInTenantByPrincipalIdentity { private set; get; }
253+
public bool? AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled { private set; get; }
253254
#endregion
254255

255256
public SPOTenant(Tenant tenant, ClientContext clientContext)
@@ -739,26 +740,8 @@ public SPOTenant(Tenant tenant, ClientContext clientContext)
739740
{
740741
}
741742

742-
try
743-
{
744-
AppBypassInformationBarriers = tenant.AppBypassInformationBarriers;
745-
}
746-
catch
747-
{
748-
}
749-
750-
try
751-
{
752-
if (tenant.DefaultODBMode != null)
753-
{
754-
DefaultOneDriveInformationBarrierMode = Enum.Parse<InformationBarriersMode>(tenant.DefaultODBMode);
755-
}
756-
}
757-
catch
758-
{
759-
}
760-
761-
743+
try { AppBypassInformationBarriers = tenant.AppBypassInformationBarriers; } catch { }
744+
try { if (tenant.DefaultODBMode != null) DefaultOneDriveInformationBarrierMode = Enum.Parse<InformationBarriersMode>(tenant.DefaultODBMode); } catch { }
762745
try { CoreSharingCapability = tenant.CoreSharingCapability; } catch { }
763746
try { EnableVersionExpirationSetting = tenant.EnableVersionExpirationSetting; } catch { }
764747
try { BlockUserInfoVisibilityInOneDrive = tenant.BlockUserInfoVisibilityInOneDrive; } catch { }
@@ -789,6 +772,7 @@ public SPOTenant(Tenant tenant, ClientContext clientContext)
789772
try { SharePointAddInsDisabled = tenant.SharePointAddInsDisabled; } catch { }
790773
try { OneDriveSharingCapability = tenant.ODBSharingCapability; } catch { }
791774
try { GuestSharingGroupAllowListInTenantByPrincipalIdentity = tenant.GuestSharingGroupAllowListInTenantByPrincipalIdentity?.ToArray(); } catch { }
775+
try { AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled = tenant.AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled; } catch { }
792776
}
793777
}
794778
}

0 commit comments

Comments
 (0)