Updated storage permission scopes
This commit is contained in:
parent
0025d12a4f
commit
21759964cc
1 changed files with 3 additions and 3 deletions
|
@ -399,7 +399,7 @@ $utopia->get('/v1/storage/files/:fileId/view')
|
||||||
|
|
||||||
$utopia->post('/v1/storage/files')
|
$utopia->post('/v1/storage/files')
|
||||||
->desc('Create File')
|
->desc('Create File')
|
||||||
->label('scope', 'storage.files.write')
|
->label('scope', 'files.write')
|
||||||
->label('sdk.namespace', 'storage')
|
->label('sdk.namespace', 'storage')
|
||||||
->label('sdk.method', 'createFile')
|
->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.')
|
->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')
|
$utopia->delete('/v1/storage/files/:fileId')
|
||||||
->desc('Delete File')
|
->desc('Delete File')
|
||||||
->label('scope', 'storage.files.write')
|
->label('scope', 'files.write')
|
||||||
->label('sdk.namespace', 'storage')
|
->label('sdk.namespace', 'storage')
|
||||||
->label('sdk.method', 'deleteFile')
|
->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.')
|
->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')
|
$utopia->get('/v1/storage/files/:fileId/scan')
|
||||||
->desc('Scan Storage')
|
->desc('Scan Storage')
|
||||||
->label('scope', 'storage.scan')
|
->label('scope', 'god')
|
||||||
->label('sdk.namespace', 'storage')
|
->label('sdk.namespace', 'storage')
|
||||||
->label('sdk.method', 'getFileScan')
|
->label('sdk.method', 'getFileScan')
|
||||||
->label('sdk.hide', true)
|
->label('sdk.hide', true)
|
||||||
|
|
Loading…
Reference in a new issue