chore: added required perms in migrations

This commit is contained in:
Chirag Aggarwal 2025-02-06 09:55:32 +00:00
parent ba0a6f0097
commit fd3da47e8a
2 changed files with 4 additions and 2 deletions

View file

@ -66,7 +66,7 @@ class Update extends Action
->inject('user') ->inject('user')
->inject('mode') ->inject('mode')
->inject('queueForEvents') ->inject('queueForEvents')
->callback(fn ($tokenId, $expire, $permission, $response, $dbForProject, $queueForEvents) => $this->action($tokenId, $expire, $permission, $response, $dbForProject, $queueForEvents)); ->callback(fn ($tokenId, $expire, $permissions, $response, $dbForProject, $queueForEvents) => $this->action($tokenId, $expire, $permissions, $response, $dbForProject, $queueForEvents));
} }
public function action(string $tokenId, ?string $expire, ?array $permissions, Response $response, Database $dbForProject, Event $queueForEvents) public function action(string $tokenId, ?string $expire, ?array $permissions, Response $response, Database $dbForProject, Event $queueForEvents)

View file

@ -226,7 +226,9 @@ class Migrations extends Action
'collections.read', 'collections.read',
'collections.write', 'collections.write',
'documents.read', 'documents.read',
'documents.write' 'documents.write',
'tokens.read',
'tokens.write',
] ]
]); ]);