mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
[FIX] attachment_azure: higher level of permissions needed to create container and upload blobs when using the SAS token
This commit is contained in:
@@ -74,8 +74,8 @@ class IrAttachment(models.Model):
|
||||
sas_token = generate_account_sas(
|
||||
account_name=account_name,
|
||||
account_key=account_key,
|
||||
resource_types=ResourceTypes(service=True),
|
||||
permission=AccountSasPermissions(read=True),
|
||||
resource_types=ResourceTypes(container=True, object=True),
|
||||
permission=AccountSasPermissions(read=True, write=True),
|
||||
expiry=datetime.utcnow() + timedelta(hours=1),
|
||||
)
|
||||
blob_service_client = BlobServiceClient(
|
||||
|
||||
Reference in New Issue
Block a user