mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-05 05:55:21 +02:00
feat(roles): implement role management functionality
- Added a new component for managing user roles, allowing assignment and creation of roles. - Introduced a new API router for role management, including endpoints for creating, updating, and deleting roles. - Updated the database schema to support role management with a new "organization_role" table. - Enhanced user management to include role assignments and permissions handling. - Updated UI components to integrate the new role management features.
This commit is contained in:
13
packages/server/src/db/scripts/create-default-roles.ts
Normal file
13
packages/server/src/db/scripts/create-default-roles.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createDefaultRoles } from "../migrations/create-default-roles";
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
await createDefaultRoles();
|
||||
process.exit(0);
|
||||
} catch (error) {
|
||||
console.error("Failed to create default roles:", error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user