Skip to content

Commit

Permalink
Fix all references
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinr committed Oct 17, 2024
1 parent 1155be4 commit 8008d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend-core/src/security/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ export async function getAllRoles(appId?: string): Promise<RoleDoc[]> {
}

async function shouldIncludePowerRole(db: Database) {
const app = await db.get<App>(DocumentType.APP_METADATA)
const { creationVersion } = app
const app = await db.tryGet<App>(DocumentType.APP_METADATA)
const creationVersion = app?.creationVersion
if (!creationVersion) {
// Old apps don't have creationVersion, so we should include it for backward compatibility
return true
Expand Down

0 comments on commit 8008d2c

Please sign in to comment.