Clean
This commit is contained in:
parent
4cde2f26ad
commit
9f84262940
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue