File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
src/HealthcareApis/HealthcareApis Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
+ * Access policies are no longer defaulted to the current principal
21
22
22
23
## Version 1.0.1
23
24
* Update references in .psd1 to use relative path
Original file line number Diff line number Diff line change @@ -208,17 +208,13 @@ private List<ServiceAccessPolicyEntry> GetAccessPolicies()
208
208
{
209
209
List < ServiceAccessPolicyEntry > accessPolicies = new List < ServiceAccessPolicyEntry > ( ) ;
210
210
211
- if ( AccessPolicyObjectId == null || AccessPolicyObjectId . Length == 0 )
211
+ if ( AccessPolicyObjectId != null && AccessPolicyObjectId . Length > 0 )
212
212
{
213
- string objectID = base . AccessPolicyID ;
214
- accessPolicies . Add ( new ServiceAccessPolicyEntry ( objectID ) ) ;
215
- return accessPolicies ;
216
- }
217
-
218
- foreach ( var objectID in AccessPolicyObjectId )
219
- {
220
- HealthcareApisArgumentValidator . ValidateObjectId ( objectID ) ;
221
- accessPolicies . Add ( new ServiceAccessPolicyEntry ( objectID ) ) ;
213
+ foreach ( var objectID in AccessPolicyObjectId )
214
+ {
215
+ HealthcareApisArgumentValidator . ValidateObjectId ( objectID ) ;
216
+ accessPolicies . Add ( new ServiceAccessPolicyEntry ( objectID ) ) ;
217
+ }
222
218
}
223
219
224
220
return accessPolicies ;
You can’t perform that action at this time.
0 commit comments