no message

This commit is contained in:
kittapath 2024-10-10 00:35:17 +07:00
parent 46b3df5e95
commit e43c29dbc4
9 changed files with 1095 additions and 29 deletions

View file

@ -310,7 +310,6 @@ export class PermissionController extends Controller {
}
let privilege = await this.Permission(request, system, action);
console.log(privilege);
let reply = await getAsync("posMaster_" + profile.id);
if (reply != null) {
reply = JSON.parse(reply);
@ -685,19 +684,6 @@ export class PermissionController extends Controller {
}
public async PermissionOrg(req: RequestWithUser, system: string, action: string) {
// if (
// req.headers.hasOwnProperty("api_key") &&
// req.headers["api_key"] &&
// req.headers["api_key"] == process.env.API_KEY
// ) {
// return {
// root: null,
// child1: null,
// child2: null,
// child3: null,
// child4: null,
// };
// }
let x: any = await this.listAuthSysOrgFunc(req, system, action);
let privilege = x.privilege;