update 837494574248735

This commit is contained in:
equippedcoding-master
2025-09-27 14:08:16 -05:00
parent 09117a248d
commit 5ced0e3a4b
159 changed files with 49543 additions and 4636 deletions

View File

@@ -15,13 +15,16 @@
this.testing = true;
this.config.key = "passthrough";
// console.log(this.config)
console.log(json_config);
if(this.config.member.json_data==undefined){
this.config.member.json_data = {archive: this.config.json.catalog.archive}
}else if(this.config.member.json_data.archive==undefined){
this.config.member.json_data.archive = this.config.json.catalog;
}
// TODO_4: user should already have json_data & records
// if(this.config.member.json_data==undefined){
// this.config.member.json_data = {archive: this.config.json.catalog.archive}
// }
// if(this.config.member.json_data.records==undefined){
// this.config.member.json_data.records = this.config.json.catalog;
// }
RunAccessControlMaker();
@@ -73,13 +76,13 @@
if(cb!=undefined) cb({enabled: true});
return;
}
// console.log(self.config.member)
let registry_alloc = self.config.json.catalog.registry.alloc;
console.log(self.config);
let registry_alloc = self.config.json.catalog.inventory.alloc;
let archives_alloc =
self.config.member.json_data.archive.catalog.archive.alloc;
self.config.member.json_data.registry.catalog.archive.alloc;
if(registry_alloc[category]!=undefined && registry_alloc[category]["modules"][module]!=undefined){
@@ -88,13 +91,13 @@
let allowed = registry_alloc[category]["modules"][module]["memberships"][self.membership];
let own = archives_alloc[category][module];
// console.log("===========================");
// console.log(allowed);
// console.log(own);
// console.log(registry_alloc);
// console.log(category);
// console.log(self);
// console.log(module);
console.log("===========================");
console.log(allowed);
console.log(own);
console.log(registry_alloc);
console.log(category);
console.log(self);
console.log(module);
if(own.count < allowed.count){
let access = {enabled: true};
if(cb!=undefined) cb(access);
@@ -339,8 +342,8 @@
function _func_update_web_hosting(self,opts,cb){
let template = self.config.json.catalog.archive.templates.domain;
template.id = opts.id;
self.config.member.json_data.archive.catalog.archive.alloc.domains.push(template);
self.config.member.json_data.archive.catalog.archive.alloc.websites.hosting.count += opts.count;
self.config.member.json_data.registry.catalog.archive.alloc.domains.push(template);
self.config.member.json_data.registry.catalog.archive.alloc.websites.hosting.count += opts.count;
// console.log(self.config.member);
self.apicall("/v1/core/member_update",{