@tomei/sso 0.46.0 → 0.46.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/user-group/user-group.d.ts +2 -2
- package/dist/src/components/user-group/user-group.js +12 -13
- package/dist/src/components/user-group/user-group.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/user-group/user-group.ts +11 -10
package/package.json
CHANGED
@@ -7,7 +7,7 @@ import { ApplicationConfig } from '@tomei/config';
|
|
7
7
|
import { ActionEnum, Activity } from '@tomei/activity-history';
|
8
8
|
import GroupSystemAccessModel from '../../models/group-system-access.entity';
|
9
9
|
import GroupModel from '../../models/group.entity';
|
10
|
-
import SystemModel from 'models/system.entity';
|
10
|
+
import SystemModel from '../../models/system.entity';
|
11
11
|
|
12
12
|
export class UserGroup extends ObjectBase {
|
13
13
|
ObjectType = 'UserGroup';
|
@@ -308,8 +308,8 @@ export class UserGroup extends ObjectBase {
|
|
308
308
|
{
|
309
309
|
GroupCode: string;
|
310
310
|
GroupName: string;
|
311
|
-
|
312
|
-
|
311
|
+
InheritGroupSystemAccessYN: string;
|
312
|
+
Systems: {
|
313
313
|
SystemCode: string;
|
314
314
|
SystemName: string;
|
315
315
|
AccessStatus: string;
|
@@ -383,8 +383,8 @@ export class UserGroup extends ObjectBase {
|
|
383
383
|
const result: {
|
384
384
|
GroupCode: string;
|
385
385
|
GroupName: string;
|
386
|
-
|
387
|
-
|
386
|
+
InheritGroupSystemAccessYN: string;
|
387
|
+
Systems: {
|
388
388
|
SystemCode: string;
|
389
389
|
SystemName: string;
|
390
390
|
AccessStatus: string;
|
@@ -422,13 +422,13 @@ export class UserGroup extends ObjectBase {
|
|
422
422
|
const groupData = {
|
423
423
|
GroupCode: userGroup.GroupCode,
|
424
424
|
GroupName: userGroup.Group.Name,
|
425
|
-
|
426
|
-
|
425
|
+
InheritGroupSystemAccessYN: userGroup.InheritGroupSystemAccessYN,
|
426
|
+
Systems: [],
|
427
427
|
};
|
428
428
|
|
429
429
|
if (userGroup.InheritGroupSystemAccessYN === 'Y') {
|
430
|
-
groupData.
|
431
|
-
|
430
|
+
groupData.Systems = userGroup.Group.GroupSystemAccesses.map(
|
431
|
+
(groupSystemAccess) => {
|
432
432
|
return {
|
433
433
|
SystemCode: groupSystemAccess.System.SystemCode,
|
434
434
|
SystemName: groupSystemAccess.System.Name,
|
@@ -436,7 +436,8 @@ export class UserGroup extends ObjectBase {
|
|
436
436
|
CreatedAt: groupSystemAccess.CreatedAt,
|
437
437
|
UpdatedAt: groupSystemAccess.UpdatedAt,
|
438
438
|
};
|
439
|
-
}
|
439
|
+
},
|
440
|
+
);
|
440
441
|
}
|
441
442
|
|
442
443
|
result.push(groupData);
|