File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ - (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker
568
568
CDVPluginResult* result;
569
569
if (picker.sourceType == UIImagePickerControllerSourceTypeCamera && [AVCaptureDevice authorizationStatusForMediaType: AVMediaTypeVideo] != ALAuthorizationStatusAuthorized) {
570
570
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString: @" has no access to camera" ];
571
- } else if (picker.sourceType != UIImagePickerControllerSourceTypeCamera && [ALAssetsLibrary authorizationStatus ] != ALAuthorizationStatusAuthorized) {
571
+ } else if (picker.sourceType != UIImagePickerControllerSourceTypeCamera && ! IsAtLeastiOSVersion ( @" 11.0 " ) && [ALAssetsLibrary authorizationStatus ] != ALAuthorizationStatusAuthorized) {
572
572
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString: @" has no access to assets" ];
573
573
} else {
574
574
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString: @" No Image Selected" ];
You can’t perform that action at this time.
0 commit comments