list roles, make sidebar component, responsive mobile settings menu selector

This commit is contained in:
Milo Schwartz 2024-11-09 00:08:17 -05:00
parent 9c2e481d2b
commit bb17d30c9e
No known key found for this signature in database
25 changed files with 733 additions and 207 deletions

View file

@ -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();