This commit is contained in:
Adria Navarro 2024-10-08 13:12:37 +02:00
parent 4cde2f26ad
commit 9f84262940
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export async function fetch(
ctx: UserCtx<void, FetchResourcePermissionInfoResponse>
) {
const db = context.getAppDB()
const dbRoles: Role[] = await sdk.permissions.getAllDBRoles(db)
const dbRoles = await sdk.permissions.getAllDBRoles(db)
let permissions: any = {}
// create an object with structure role ID -> resource ID -> level
for (let role of dbRoles) {