docs: nextjs,frontends,package (10 files)

This commit is contained in:
2025-12-26 02:34:07 +00:00
parent 758542138a
commit ded2a8b0fb
10 changed files with 9 additions and 5 deletions

View File

@@ -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 |

View File

@@ -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

View File

@@ -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
*/