Update app/controllers/api/storage.php
Co-authored-by: Torsten Dittmann <torsten.dittmann@googlemail.com>
This commit is contained in:
parent
696b133881
commit
e530d633dc
1 changed files with 2 additions and 2 deletions
|
@ -170,8 +170,8 @@ App::put('/v1/storage/buckets/:bucketId')
|
||||||
throw new Exception('Bucket not found', 404);
|
throw new Exception('Bucket not found', 404);
|
||||||
}
|
}
|
||||||
|
|
||||||
$read = (is_null($read)) ? $bucket->getAttribute('$read', []) : $read; // By default inherit read permissions
|
$read ??= $bucket->getAttribute('$read', []); // By default inherit read permissions
|
||||||
$write = (is_null($write)) ? $bucket->getAttribute('$write',[]) : $write; // By default inherit write permissions
|
$write ??= $bucket->getAttribute('$write',[]); // By default inherit write permissions
|
||||||
|
|
||||||
$bucket = $dbForInternal->updateDocument('buckets', $bucket->getId(), $bucket
|
$bucket = $dbForInternal->updateDocument('buckets', $bucket->getId(), $bucket
|
||||||
->setAttribute('name',$name)
|
->setAttribute('name',$name)
|
||||||
|
|
Loading…
Reference in a new issue