@tomei/sso 0.34.2 → 0.34.6
Sign up to get free protection for your applications and to get access to all the features.
- package/__tests__/unit/components/login-user/login.spec.ts +474 -375
- package/dist/__tests__/unit/components/login-user/login.spec.js +71 -219
- package/dist/__tests__/unit/components/login-user/login.spec.js.map +1 -1
- package/dist/src/components/group/group.d.ts +1 -1
- package/dist/src/components/group/group.js +2 -2
- package/dist/src/components/group/group.js.map +1 -1
- package/dist/src/components/login-user/index.d.ts +1 -0
- package/dist/src/components/login-user/index.js +1 -0
- package/dist/src/components/login-user/index.js.map +1 -1
- package/dist/src/components/login-user/login-user.d.ts +7 -121
- package/dist/src/components/login-user/login-user.js +11 -1477
- package/dist/src/components/login-user/login-user.js.map +1 -1
- package/dist/src/components/login-user/user.d.ts +133 -0
- package/dist/src/components/login-user/user.js +1617 -0
- package/dist/src/components/login-user/user.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/group/group.ts +2 -2
- package/src/components/login-user/index.ts +1 -0
- package/src/components/login-user/login-user.ts +110 -2235
- package/src/components/login-user/user.ts +2343 -0
package/package.json
CHANGED
@@ -641,7 +641,7 @@ export class Group extends ObjectBase {
|
|
641
641
|
return systemAccess;
|
642
642
|
}
|
643
643
|
|
644
|
-
public static async
|
644
|
+
public static async isGroupCodeInHierarchy(
|
645
645
|
dbTransaction: any,
|
646
646
|
GroupCode: string,
|
647
647
|
ListGroupCode: string[] = [],
|
@@ -656,7 +656,7 @@ export class Group extends ObjectBase {
|
|
656
656
|
if (group?.ParentGroupCode) {
|
657
657
|
const isGroupCodeExist = ListGroupCode.includes(group.ParentGroupCode);
|
658
658
|
if (!isGroupCodeExist) {
|
659
|
-
await this.
|
659
|
+
await this.isGroupCodeInHierarchy(
|
660
660
|
dbTransaction,
|
661
661
|
group.ParentGroupCode,
|
662
662
|
ListGroupCode,
|