File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/UmbracoFileSystemProviders.Azure Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ private static CloudBlobContainer CreateContainer(CloudBlobClient cloudBlobClien
615
615
}
616
616
617
617
CloudBlobContainer container = cloudBlobClient . GetContainerReference ( containerName . ToLowerInvariant ( ) ) ;
618
- if ( ! cloudBlobClient . Credentials . IsSAS )
618
+ if ( cloudBlobClient . Credentials . IsSAS )
619
619
{
620
620
// Shared access signatures (SAS) have some limitations compared to shared access keys
621
621
// read more on: https://docs.microsoft.com/en-us/azure/storage/common/storage-dotnet-shared-access-signature-part-1
@@ -624,11 +624,16 @@ private static CloudBlobContainer CreateContainer(CloudBlobClient cloudBlobClien
624
624
if ( isAccountSas )
625
625
{
626
626
container . CreateIfNotExists ( ) ;
627
+
628
+ // permissions can't be set!
627
629
}
628
630
629
- container . SetPermissions ( new BlobContainerPermissions { PublicAccess = accessType } ) ;
631
+ return container ;
630
632
}
631
633
634
+ container . CreateIfNotExists ( ) ;
635
+ container . SetPermissions ( new BlobContainerPermissions { PublicAccess = accessType } ) ;
636
+
632
637
return container ;
633
638
}
634
639
You can’t perform that action at this time.
0 commit comments