Update app/controllers/api/storage.php
Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
This commit is contained in:
parent
ccae13ac19
commit
49cfddae1e
1 changed files with 7 additions and 7 deletions
|
@ -380,13 +380,13 @@ App::put('/v1/storage/buckets/:bucketId')
|
|||
|
||||
$read ??= $bucket->getAttribute('$read', []); // By default inherit read permissions
|
||||
$write ??= $bucket->getAttribute('$write',[]); // By default inherit write permissions
|
||||
$read??=$bucket->getAttribute('$read', []); // By default inherit read permissions
|
||||
$write??=$bucket->getAttribute('$write', []); // By default inherit write permissions
|
||||
$maximumFileSize??=$bucket->getAttribute('maximumFileSize', (int)App::getEnv('_APP_STORAGE_LIMIT', 0));
|
||||
$allowedFileExtensions??=$bucket->getAttribute('allowedFileExtensions', []);
|
||||
$enabled??=$bucket->getAttribute('enabled', true);
|
||||
$encryption??=$bucket->getAttribute('encryption', true);
|
||||
$antiVirus??=$bucket->getAttribute('antiVirus', true);
|
||||
$read ??= $bucket->getAttribute('$read', []); // By default inherit read permissions
|
||||
$write ??= $bucket->getAttribute('$write', []); // By default inherit write permissions
|
||||
$maximumFileSize ??= $bucket->getAttribute('maximumFileSize', (int)App::getEnv('_APP_STORAGE_LIMIT', 0));
|
||||
$allowedFileExtensions ??= $bucket->getAttribute('allowedFileExtensions', []);
|
||||
$enabled ??= $bucket->getAttribute('enabled', true);
|
||||
$encryption ??= $bucket->getAttribute('encryption', true);
|
||||
$antiVirus ??= $bucket->getAttribute('antiVirus', true);
|
||||
|
||||
$bucket = $dbForInternal->updateDocument('buckets', $bucket->getId(), $bucket
|
||||
->setAttribute('name',$name)
|
||||
|
|
Loading…
Reference in a new issue