mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
feat: namespace plugin permissions and keep them valid when a plugin is off
This commit is contained in:
1 parent
8431570ff7
commit
cc15559ea1
53 files changed
+31442
-351
No files matched your search
@@ -135,12 +135,10 @@ check("host really deleted", await hosts.findById(host.id), null);
|
||||
// A plugin's own tables. The DDL is emitted from a table definition rather
|
||||
// than written by hand, so this is what proves the emitter's output is valid
|
||||
// on a real engine - the unit tests can only snapshot the string.
|
||||
const { defineTable, id, varchar, text, refUser, timestamp } = await import(
|
||||
"../packages/plugin-sdk/dist/db.js"
|
||||
);
|
||||
const { createTableSql, dropTableSql } = await import(
|
||||
"../packages/plugin-sdk/dist/ddl.js"
|
||||
);
|
||||
const { defineTable, id, varchar, text, refUser, timestamp } =
|
||||
await import("../packages/plugin-sdk/dist/db.js");
|
||||
const { createTableSql, dropTableSql } =
|
||||
await import("../packages/plugin-sdk/dist/ddl.js");
|
||||
const { sql: raw } = await import("drizzle-orm");
|
||||
|
||||
const pluginTable = defineTable(
|
||||
|
||||
Reference in new issue
Block a user