@tomei/sso 0.38.1 → 0.38.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/group/group.js +5 -3
- package/dist/src/components/group/group.js.map +1 -1
- package/dist/src/components/group-privilege/group-privilege.repository.d.ts +1 -1
- package/dist/src/components/group-privilege/group-privilege.repository.js +2 -2
- package/dist/src/components/group-privilege/group-privilege.repository.js.map +1 -1
- package/dist/src/models/group-object-privilege.entity.js +1 -1
- package/dist/src/models/group-privilege.entity.js +1 -1
- package/dist/src/models/user-object-privilege.entity.js +1 -1
- package/dist/src/models/user-privilege.entity.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/group/group.ts +5 -3
- package/src/components/group-privilege/group-privilege.repository.ts +2 -2
- package/src/models/group-object-privilege.entity.ts +1 -1
- package/src/models/group-privilege.entity.ts +1 -1
- package/src/models/user-object-privilege.entity.ts +1 -1
- package/src/models/user-privilege.entity.ts +1 -1
package/package.json
CHANGED
@@ -181,7 +181,7 @@ export class Group extends TreeNodeBase<Group> {
|
|
181
181
|
|
182
182
|
async setParent(parent: Group, dbTransaction?: any): Promise<void> {
|
183
183
|
this.parent = parent;
|
184
|
-
await this.
|
184
|
+
await this.updatePath(dbTransaction);
|
185
185
|
}
|
186
186
|
|
187
187
|
async getPathDetail(dbTransaction?: any): Promise<Group[]> {
|
@@ -486,7 +486,7 @@ export class Group extends TreeNodeBase<Group> {
|
|
486
486
|
ParentGroupCode: currentGroup.ParentGroupCode,
|
487
487
|
InheritParentPrivilegeYN: currentGroup.InheritParentPrivilegeYN,
|
488
488
|
InheritParentSystemAccessYN: currentGroup.InheritParentSystemAccessYN,
|
489
|
-
Path:
|
489
|
+
Path: currentGroup.Path,
|
490
490
|
Status: currentGroup.Status,
|
491
491
|
CreatedById: currentGroup._CreatedById,
|
492
492
|
UpdatedById: currentGroup._UpdatedById,
|
@@ -527,7 +527,7 @@ export class Group extends TreeNodeBase<Group> {
|
|
527
527
|
}
|
528
528
|
|
529
529
|
if (isPathChanged) {
|
530
|
-
await
|
530
|
+
await currentGroup.updateChildrenPath(oldGroupCode, dbTransaction);
|
531
531
|
}
|
532
532
|
|
533
533
|
currentGroup.Name = group?.Name || currentGroup.Name;
|
@@ -555,6 +555,7 @@ export class Group extends TreeNodeBase<Group> {
|
|
555
555
|
InheritParentPrivilegeYN: currentGroup.InheritParentPrivilegeYN,
|
556
556
|
InheritParentSystemAccessYN: currentGroup.InheritParentSystemAccessYN,
|
557
557
|
Status: currentGroup.Status,
|
558
|
+
Path: currentGroup._Path,
|
558
559
|
UpdatedById: currentGroup._UpdatedById,
|
559
560
|
UpdatedAt: currentGroup._UpdatedAt,
|
560
561
|
},
|
@@ -575,6 +576,7 @@ export class Group extends TreeNodeBase<Group> {
|
|
575
576
|
InheritParentPrivilegeYN: currentGroup.InheritParentPrivilegeYN,
|
576
577
|
InheritParentSystemAccessYN: currentGroup.InheritParentSystemAccessYN,
|
577
578
|
Status: currentGroup.Status,
|
579
|
+
Path: currentGroup._Path,
|
578
580
|
CreatedById: currentGroup._CreatedById,
|
579
581
|
UpdatedById: currentGroup._UpdatedById,
|
580
582
|
CreatedAt: currentGroup._CreatedAt,
|
@@ -12,13 +12,13 @@ export class GroupPrivilegeRepository
|
|
12
12
|
|
13
13
|
async delete(
|
14
14
|
GroupCode: string,
|
15
|
-
|
15
|
+
SystemPrivilegeId: string,
|
16
16
|
SystemCode: string,
|
17
17
|
dbTransaction?: any,
|
18
18
|
) {
|
19
19
|
try {
|
20
20
|
const data = await GroupPrivilegeModel.findOne({
|
21
|
-
where: { GroupCode,
|
21
|
+
where: { GroupCode, SystemPrivilegeId },
|
22
22
|
include: [
|
23
23
|
{
|
24
24
|
model: SystemPrivilegeModel,
|