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

    
    func locationManager(manager: CLLocationManager!, didChangeAuthorizationStatus status: CLAuthorizationStatus) {
        if status != .Denied {
            tempBlock?(.JustAuthorized)
        } else {
            tempBlock?(.Denied)
        }
    }
    
}



class Permission: NSObject {
    let type : PermissionType
    let title : String
    var button: UIButton?
    var imageView: UIImageView?
    
    init(type: PermissionType, title: String) {
        self.type = type
