fix ระบบแจ้ง Noti ไม่ตรงตามสิทธิ์ที่ได้รับ #2488
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m4s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m4s
This commit is contained in:
parent
9f2fec3ee3
commit
74d03176cd
1 changed files with 6 additions and 6 deletions
|
|
@ -8897,20 +8897,20 @@ export class OrganizationDotnetController extends Controller {
|
|||
if (privilege === "BROTHER") {
|
||||
if (userNode < staffNode - 1 || userNode > 4) return false;
|
||||
|
||||
if (staffNode === 0) {
|
||||
if (staffNode === 0 || staffNode === 1) {
|
||||
if (staffDna.root !== userDna.root) return false;
|
||||
} else if (staffNode === 1) {
|
||||
} /*else if (staffNode === 1) {
|
||||
if (staffDna.root !== userDna.root) return false;
|
||||
if (staffDna.child1 !== userDna.child1) return false;
|
||||
} else if (staffNode === 2) {
|
||||
}*/ else if (staffNode === 2) {
|
||||
if (staffDna.child1 !== userDna.child1) return false;
|
||||
if (staffDna.child2 !== userDna.child2 && userDna.child2 !== null) return false;
|
||||
// if (staffDna.child2 !== userDna.child2 && userDna.child2 !== null) return false;
|
||||
} else if (staffNode === 3) {
|
||||
if (staffDna.child2 !== userDna.child2) return false;
|
||||
if (staffDna.child3 !== userDna.child3 && userDna.child3 !== null) return false;
|
||||
// if (staffDna.child3 !== userDna.child3 && userDna.child3 !== null) return false;
|
||||
} else if (staffNode === 4) {
|
||||
if (staffDna.child3 !== userDna.child3) return false;
|
||||
if (staffDna.child4 !== userDna.child4 && userDna.child4 !== null) return false;
|
||||
// if (staffDna.child4 !== userDna.child4 && userDna.child4 !== null) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue