Skip to content

Commit

Permalink
Make sure the permissions controller is displayed if the camera permi…
Browse files Browse the repository at this point in the history
…ssions are not determined. #141
  • Loading branch information
onato committed Feb 26, 2019
1 parent 11183c1 commit b80b0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Gallery/GalleryController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class GalleryController: UIViewController, PermissionControllerDelegate {
}

func makePagesController() -> PagesController? {
guard Permission.Photos.status == .authorized else {
guard Permission.Photos.status == .authorized, Permission.Camera.status != .notDetermined else {
return nil
}

Expand Down

0 comments on commit b80b0dc

Please sign in to comment.