summary refs log tree commit diff
path: root/api/scripts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-04-23 01:07:59 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-04-23 01:07:59 +1000
commit5c27b523341346a8317beae5b3c8b9460cedb23a (patch)
tree83fee3e4eb5547551fea562b6a0eaeec9593f0b3 /api/scripts
parentUpdate UserGroup.ts (diff)
downloadserver-5c27b523341346a8317beae5b3c8b9460cedb23a.tar.xz
Fixed ability for user to edit any property of themselves, including `rights`, `flags`. Note to self: schemas.json is a GENERATED file. `npm run generate:schema` in api/
Diffstat (limited to 'api/scripts')
-rw-r--r--api/scripts/generate_schema.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/api/scripts/generate_schema.js b/api/scripts/generate_schema.js
index c12f6b1a..7e742ec1 100644
--- a/api/scripts/generate_schema.js
+++ b/api/scripts/generate_schema.js
@@ -31,7 +31,6 @@ const Excluded = [
 ];
 
 function modify(obj) {
-	delete obj.additionalProperties;
 	for (var k in obj) {
 		if (typeof obj[k] === "object" && obj[k] !== null) {
 			modify(obj[k]);