mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
list roles, make sidebar component, responsive mobile settings menu selector
This commit is contained in:
parent
9c2e481d2b
commit
bb17d30c9e
25 changed files with 733 additions and 207 deletions
|
@ -56,14 +56,13 @@ export async function ensureActions() {
|
|||
}
|
||||
|
||||
export async function createAdminRole(orgId: string) {
|
||||
// Create the Default role if it doesn't exist
|
||||
const [insertedRole] = await db
|
||||
.insert(roles)
|
||||
.values({
|
||||
orgId,
|
||||
isAdmin: true,
|
||||
name: "Admin",
|
||||
description: "Admin role most permissions",
|
||||
description: "Admin role with the most permissions",
|
||||
})
|
||||
.returning({ roleId: roles.roleId })
|
||||
.execute();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue