Fix bug #54
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m34s

This commit is contained in:
harid 2026-02-20 11:46:46 +07:00
parent 8497e5df57
commit 637e995915
2 changed files with 6 additions and 6 deletions

View file

@ -1663,7 +1663,7 @@ export class OrganizationController extends Controller {
// กำหนดการเข้าถึงข้อมูลตามสถานะและสิทธิ์
const isCurrentActive = !orgRevision.orgRevisionIsDraft && orgRevision.orgRevisionIsCurrent;
if (isCurrentActive) {
if (profileAssign && _privilege.privilege !== "OWNER") {
if (profileAssign && _privilege.privilege !== "OWNER" && _privilege.privilege !== "PARENT") {
if (_privilege.privilege == "NORMAL") {
const holder = profile.current_holders.find((x) => x.orgRevisionId === id);
if (!holder) return;
@ -5700,7 +5700,7 @@ export class OrganizationController extends Controller {
// กำหนดการเข้าถึงข้อมูลตามสถานะและสิทธิ์
const isCurrentActive = !orgRevision.orgRevisionIsDraft && orgRevision.orgRevisionIsCurrent;
if (isCurrentActive) {
if (profileAssign && _privilege.privilege !== "OWNER") {
if (profileAssign && _privilege.privilege !== "OWNER" && _privilege.privilege !== "PARENT") {
if (_privilege.privilege == "NORMAL") {
const holder = profile.current_holders.find((x) => x.orgRevisionId === id);
if (!holder) return;
@ -6257,7 +6257,7 @@ export class OrganizationController extends Controller {
// กำหนดการเข้าถึงข้อมูลตามสถานะและสิทธิ์
const isCurrentActive = !orgRevision.orgRevisionIsDraft && orgRevision.orgRevisionIsCurrent;
if (isCurrentActive) {
if (_privilege.privilege !== "OWNER") {
if (_privilege.privilege !== "OWNER" && _privilege.privilege !== "PARENT") {
if (_privilege.privilege == "NORMAL") {
const holder = profile.current_holders.find((x) => x.orgRevisionId === id);
if (!holder) return;