mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
docs: nextjs,frontends,package (10 files)
This commit is contained in:
@@ -164,6 +164,8 @@ Hierarchical access control where each level inherits all permissions from lower
|
||||
| 5 | God | Workflows, advanced scripting, packages | `/builder` |
|
||||
| 6 | Supergod | Full system control, tenant management | `/supergod` |
|
||||
|
||||
The new Level 3 moderator desk (`/moderator`) is protected by `AuthGate` with `requiredRole="moderator"` and surfaces flagged discussions, incident reports, and quick actions before escalation to admin.
|
||||
|
||||
### Permission Matrix
|
||||
|
||||
| Feature | L1 | L2 | L3 | L4 | L5 | L6 |
|
||||
|
||||
@@ -110,11 +110,8 @@ bool Server::start() {
|
||||
registerRoutes();
|
||||
drogon::app().addListener(bind_address_, static_cast<uint16_t>(port_));
|
||||
|
||||
server_thread_ = std::thread([]() {
|
||||
drogon::app().run();
|
||||
});
|
||||
|
||||
running_.store(true);
|
||||
server_thread_ = std::thread(&Server::runServer, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -161,5 +158,10 @@ void Server::registerRoutes() {
|
||||
routes_registered_ = true;
|
||||
}
|
||||
|
||||
void Server::runServer() {
|
||||
drogon::app().run();
|
||||
running_.store(false);
|
||||
}
|
||||
|
||||
} // namespace daemon
|
||||
} // namespace dbal
|
||||
|
||||
@@ -18,7 +18,7 @@ export type AppLevel = 1 | 2 | 3 | 4 | 5 | 6
|
||||
* @property id - Unique user identifier
|
||||
* @property username - Display username
|
||||
* @property email - Email address for notifications
|
||||
* @property role - Permission level (public|user|admin|god|supergod)
|
||||
* @property role - Permission level (public|user|moderator|admin|god|supergod)
|
||||
* @property tenantId - Tenant isolation identifier
|
||||
* @property isInstanceOwner - Owner of this MetaBuilder instance
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user