fix(auth): add u2f permissions for pro users
This commit is contained in:
parent
0fc5db8aee
commit
d211249086
1 changed files with 14 additions and 0 deletions
14
packages/auth/migrations/1681984540867-enable-u2f.ts
Normal file
14
packages/auth/migrations/1681984540867-enable-u2f.ts
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue