     }
     
     private func askLocationInUse(completion: ((RequestStatusCallback) -> ())) {
-        tempBlock = completion
+        completionBlock = completion
         locationManager?.delegate = self
         locationManager?.requestWhenInUseAuthorization()
     }

class AppPermissions: NSObject, CLLocationManagerDelegate {
    
    var locationManager: CLLocationManager?
    var tempBlock: ((RequestStatusCallback) -> ())?
    
    init(useLocation: Bool = false) {
        super.init()

    
    
    func ask(forType type: PermissionType, callback: ((RequestStatusCallback) -> ())) {
        let status: StatusType = self.status(forType: type)
        
        if status == .Authorized {
