Skip to content

Commit

Permalink
Merge pull request #157 from RomanPodymov/master
Browse files Browse the repository at this point in the history
SPPermissionLocation fix
  • Loading branch information
Ivan Vorobei authored Nov 30, 2019
2 parents ac22685 + 1c7d4ff commit 1d4dec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/SPPermissions/Permissions/SPPermissionLocation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ struct SPLocationPermission: SPPermissionProtocol {
}

var isDenied: Bool {
return CLLocationManager.authorizationStatus() == .denied
let authorizationStatus = CLLocationManager.authorizationStatus()
return authorizationStatus == .denied || authorizationStatus == .restricted
}

func request(completion: @escaping ()->()?) {
Expand Down

0 comments on commit 1d4dec4

Please sign in to comment.