mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix backwards compat API scopes
This commit is contained in:
parent
de7dd6079e
commit
935011b9e9
6 changed files with 6 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ class Create extends TransactionsCreate
|
|||
->setHttpPath('/v1/tablesdb/transactions')
|
||||
->desc('Create transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'rows.write')
|
||||
->label('scope', ['documents.write', 'rows.write'])
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class Delete extends TransactionsDelete
|
|||
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
|
||||
->desc('Delete transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'rows.write')
|
||||
->label('scope', ['documents.write', 'rows.write'])
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class Get extends TransactionsGet
|
|||
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
|
||||
->desc('Get transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'rows.read')
|
||||
->label('scope', ['documents.read', 'rows.read'])
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class Create extends OperationsCreate
|
|||
->setHttpPath('/v1/tablesdb/transactions/:transactionId/operations')
|
||||
->desc('Create operations')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'rows.write')
|
||||
->label('scope', ['documents.write', 'rows.write'])
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Update extends TransactionsUpdate
|
|||
->setHttpPath('/v1/tablesdb/transactions/:transactionId')
|
||||
->desc('Update transaction')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'rows.write')
|
||||
->label('scope', ['documents.write', 'rows.write'])
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class XList extends TransactionsList
|
|||
->setHttpPath('/v1/tablesdb/transactions')
|
||||
->desc('List transactions')
|
||||
->groups(['api', 'database', 'transactions'])
|
||||
->label('scope', 'rows.read')
|
||||
->label('scope', ['documents.read', 'rows.read'])
|
||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||
->label('sdk', new Method(
|
||||
namespace: 'tablesDB',
|
||||
|
|
|
|||
Loading…
Reference in a new issue