update validate สิทธิ์จัดการโครงสร้างในเมนูโครงสร้างอัตตรากำลัง
This commit is contained in:
parent
5cdcc2a91e
commit
0d059f24ea
1 changed files with 5 additions and 1 deletions
|
|
@ -1988,7 +1988,11 @@ export class OrganizationController extends Controller {
|
||||||
?.posMasterAssigns.find((x) => x.assignId === "SYS_ORG");
|
?.posMasterAssigns.find((x) => x.assignId === "SYS_ORG");
|
||||||
|
|
||||||
if (orgRevision.orgRevisionIsDraft && !orgRevision.orgRevisionIsCurrent && !attrOwnership) {
|
if (orgRevision.orgRevisionIsDraft && !orgRevision.orgRevisionIsCurrent && !attrOwnership) {
|
||||||
_data.root = profile.permissionProfiles.map((x) => x.orgRootId);
|
if(Array.isArray(profile.permissionProfiles) && profile.permissionProfiles.length > 0){
|
||||||
|
_data.root = profile.permissionProfiles.map((x) => x.orgRootId);
|
||||||
|
}else{
|
||||||
|
return new HttpSuccess({ remark: "", data: [] });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// กำหนดการเข้าถึงข้อมูลตามสถานะและสิทธิ์
|
// กำหนดการเข้าถึงข้อมูลตามสถานะและสิทธิ์
|
||||||
const isCurrentActive = !orgRevision.orgRevisionIsDraft && orgRevision.orgRevisionIsCurrent;
|
const isCurrentActive = !orgRevision.orgRevisionIsDraft && orgRevision.orgRevisionIsCurrent;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue