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

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

            NSUserDefaults.standardUserDefaults().setBool(true, forKey: "requestedInUseToAlwaysUpgrade")
            NSUserDefaults.standardUserDefaults().synchronize()
        }
        completionBlock = completion
        locationManager?.delegate = self
        locationManager?.requestAlwaysAuthorization()
    }
