mirror of
https://github.com/fosrl/pangolin.git
synced 2025-09-01 07:20:06 +02:00
setup server admin
This commit is contained in:
parent
00e3dcaeab
commit
f90a822d19
29 changed files with 409 additions and 251 deletions
|
@ -34,7 +34,7 @@ export async function ensureActions() {
|
|||
defaultRoles.map((role) => ({
|
||||
roleId: role.roleId!,
|
||||
actionId,
|
||||
orgId: role.orgId!,
|
||||
orgId: role.orgId!
|
||||
}))
|
||||
)
|
||||
.execute();
|
||||
|
@ -62,7 +62,7 @@ export async function createAdminRole(orgId: string) {
|
|||
orgId,
|
||||
isAdmin: true,
|
||||
name: "Admin",
|
||||
description: "Admin role with the most permissions",
|
||||
description: "Admin role with the most permissions"
|
||||
})
|
||||
.returning({ roleId: roles.roleId })
|
||||
.execute();
|
||||
|
@ -82,7 +82,7 @@ export async function createAdminRole(orgId: string) {
|
|||
actionIds.map((action) => ({
|
||||
roleId,
|
||||
actionId: action.actionId,
|
||||
orgId,
|
||||
orgId
|
||||
}))
|
||||
)
|
||||
.execute();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue