                     self.showCameraSystemAlert(completion)
                 })
         } else {
-            completion?(granted: (authorizationStatus == AVAuthorizationStatus.Authorized), userDialogResult: .NoAction, systemDialogResult: .NoAction)
+            completion?(granted: cameraAccessGranted, userDialogResult: .NoAction, systemDialogResult: .NoAction)
         }
     }
     

                    self.showMicrophoneSystemAlert(completion)
                })
        } else {
            completion?(granted: (authorizationStatus == AVAuthorizationStatus.Authorized), userDialogResult: .NoAction, systemDialogResult: .NoAction)
        }
    }
}


                }
            )
        } else {
            completion?(granted: photoAccessGranted, userDialogResult: .NoAction, systemDialogResult: .NoAction)
        }
    }
    
