added usermanagement
This commit is contained in:
1 parent
3acce4eaf8
commit
088d763ff6
17 files changed
+1850
-785
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