1
0
Fork 0
mirror of synced 2024-06-15 09:14:50 +12:00

Updated storage permission scopes

This commit is contained in:
eldadfux 2019-08-14 14:53:07 +03:00
parent 0025d12a4f
commit 21759964cc

View file

@ -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)