permission (.NET)

This commit is contained in:
Bright 2024-08-14 17:27:11 +07:00
parent 53787597fd
commit 46e37a3451
3 changed files with 25 additions and 4 deletions

View file

@ -19,9 +19,8 @@ import HttpStatus from "./http-status";
class CheckAuth {
public async Permission(req: RequestWithUser, system: string, action: string) {
console.log(req);
await new CallAPI()
// console.log(req);
return await new CallAPI()
.GetData(req, "/org/permission")
.then((x) => {
let permission = false;