//
//  CLAuthorizationStatus+Extension.swift
//  mundraub
//
//  Created by Oliver Krakora on 13.09.20.
//  Copyright © 2020 Oliver Ian Krakora. All rights reserved.
//

import CoreLocation

extension CLAuthorizationStatus {
    var canAccess: Bool {
        switch self {
        case .authorizedAlways, .authorizedWhenInUse:
            return true
        case .denied, .notDetermined, .restricted:
            return false
        @unknown default:
            return false
        }
    }
}
