File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 19
19
-->
20
20
21
21
## Upcoming Release
22
+ * Added null check to the permissions object in the ToPSRoleDefinition method to return if the whole permissions object array is null.
22
23
23
24
## Version 6.16.2
24
25
* Introduced secrets detection feature to safeguard sensitive data.
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ public static PSRoleDefinition ToPSRoleDefinition(this RoleDefinition role)
58
58
AssignableScopes = role . AssignableScopes . ToList ( ) ,
59
59
Description = role . Description ,
60
60
IsCustom = role . RoleType == CustomRole ? true : false ,
61
- Condition = role . Permissions [ 0 ] ? . Condition ,
62
- ConditionVersion = role . Permissions [ 0 ] ? . ConditionVersion
61
+ Condition = role ? . Permissions ? [ 0 ] ? . Condition ,
62
+ ConditionVersion = role ? . Permissions ? [ 0 ] ? . ConditionVersion
63
63
} ;
64
64
}
65
65
You can’t perform that action at this time.
0 commit comments