From 21759964ccc1ac713843139a188bec6b15ee2f72 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Wed, 14 Aug 2019 14:53:07 +0300 Subject: [PATCH] Updated storage permission scopes --- app/controllers/storage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/storage.php b/app/controllers/storage.php index 7319080f5..5d97cfe9e 100644 --- a/app/controllers/storage.php +++ b/app/controllers/storage.php @@ -399,7 +399,7 @@ $utopia->get('/v1/storage/files/:fileId/view') $utopia->post('/v1/storage/files') ->desc('Create File') - ->label('scope', 'storage.files.write') + ->label('scope', 'files.write') ->label('sdk.namespace', 'storage') ->label('sdk.method', 'createFile') ->label('sdk.description', 'Create a new file. The user who creates the file will automatically be assigned to read and write access unless he has passed custom values for read and write arguments.') @@ -523,7 +523,7 @@ $utopia->post('/v1/storage/files') $utopia->delete('/v1/storage/files/:fileId') ->desc('Delete File') - ->label('scope', 'storage.files.write') + ->label('scope', 'files.write') ->label('sdk.namespace', 'storage') ->label('sdk.method', 'deleteFile') ->label('sdk.description', 'Delete a file by its unique ID. Only users with write permissions have access to delete this resource.') @@ -559,7 +559,7 @@ $utopia->delete('/v1/storage/files/:fileId') $utopia->get('/v1/storage/files/:fileId/scan') ->desc('Scan Storage') - ->label('scope', 'storage.scan') + ->label('scope', 'god') ->label('sdk.namespace', 'storage') ->label('sdk.method', 'getFileScan') ->label('sdk.hide', true)