@tomei/sso 0.38.2 → 0.38.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/group/group.js +2 -1
- 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 +3 -9
- 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 +2 -1
- package/src/components/group-privilege/group-privilege.repository.ts +3 -9
- 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
@@ -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,
|
@@ -576,6 +576,7 @@ export class Group extends TreeNodeBase<Group> {
|
|
576
576
|
InheritParentPrivilegeYN: currentGroup.InheritParentPrivilegeYN,
|
577
577
|
InheritParentSystemAccessYN: currentGroup.InheritParentSystemAccessYN,
|
578
578
|
Status: currentGroup.Status,
|
579
|
+
Path: currentGroup._Path,
|
579
580
|
CreatedById: currentGroup._CreatedById,
|
580
581
|
UpdatedById: currentGroup._UpdatedById,
|
581
582
|
CreatedAt: currentGroup._CreatedAt,
|
@@ -12,19 +12,13 @@ export class GroupPrivilegeRepository
|
|
12
12
|
|
13
13
|
async delete(
|
14
14
|
GroupCode: string,
|
15
|
-
|
16
|
-
SystemCode: string,
|
15
|
+
SystemPrivilegeId: string,
|
17
16
|
dbTransaction?: any,
|
18
17
|
) {
|
19
18
|
try {
|
20
19
|
const data = await GroupPrivilegeModel.findOne({
|
21
|
-
where: { GroupCode,
|
22
|
-
|
23
|
-
{
|
24
|
-
model: SystemPrivilegeModel,
|
25
|
-
where: { SystemCode },
|
26
|
-
},
|
27
|
-
],
|
20
|
+
where: { GroupCode, SystemPrivilegeId },
|
21
|
+
transaction: dbTransaction,
|
28
22
|
});
|
29
23
|
data.destroy({ transaction: dbTransaction });
|
30
24
|
return data;
|