feat: add scoped user accounts, password login and garden paving materials
This commit is contained in:
1 parent
c56f1a5ba9
commit
1d67e8ceba
43 files changed
+2024
-625
No files matched your search
@@ -56,6 +56,9 @@ export function validateSymconPackage(root = fileURLToPath(new URL("../", import
|
||||
ids.add(module.id);
|
||||
assert.equal(entry.name, module.name.replaceAll(" ", ""), "Module directory must match its PHP class name");
|
||||
const php = readFileSync(join(directory, "module.php"), "utf8");
|
||||
for (const helper of ["Access.php", "Users.php", "Permissions.php"]) {
|
||||
assert.ok(readFileSync(join(directory, "libs", helper)).length > 0, `Missing server access helper: ${helper}`);
|
||||
}
|
||||
assert.match(php, new RegExp(`class\\s+${entry.name}\\s+extends\\s+IPSModuleStrict\\b`), "Module PHP class is missing or mismatched");
|
||||
const form = readJson(join(directory, "form.json"));
|
||||
assert.ok(Array.isArray(form.elements) && Array.isArray(form.actions), "Module form must contain elements and actions");
|
||||
|
||||
Reference in new issue
Block a user