diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 8cad0aaf8f..60e474a7eb 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -1316,7 +1316,7 @@ App::put('/v1/storage/buckets/:bucketId/files/:fileId') throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); } - $fileSecurity = $bucket->getAttributes('fileSecurity', false); + $fileSecurity = $bucket->getAttribute('fileSecurity', false); $validator = new Authorization(Database::PERMISSION_UPDATE); $valid = $validator->isValid($bucket->getUpdate()); if (!$fileSecurity && !$valid) { @@ -1423,7 +1423,7 @@ App::delete('/v1/storage/buckets/:bucketId/files/:fileId') throw new Exception(Exception::STORAGE_BUCKET_NOT_FOUND); } - $fileSecurity = $bucket->getAttributes('fileSecurity', false); + $fileSecurity = $bucket->getAttribute('fileSecurity', false); $validator = new Authorization(Database::PERMISSION_DELETE); $valid = $validator->isValid($bucket->getDelete()); if (!$fileSecurity && !$valid) {