fix(auth): add u2f permissions for pro users

This commit is contained in:
Karol Sójko 2023-04-20 11:58:37 +02:00
parent 0fc5db8aee
commit d211249086
No known key found for this signature in database
GPG key ID: 50D9C5A8D4B8D73F

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from 'typeorm'
export class enableU2f1681984540867 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
// add u2f permission for pro users
await queryRunner.query(
'INSERT INTO `role_permissions` (role_uuid, permission_uuid) VALUES ("8047edbb-a10a-4ff8-8d53-c2cae600a8e8", "fb13e7d3-936f-4ded-a543-e1650cc99dfd")',
)
}
public async down(): Promise<void> {
return
}
}