From b80b0dc4584ac1522316a04f44209a34d5588cd8 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Tue, 26 Feb 2019 16:15:14 +1300 Subject: [PATCH] Make sure the permissions controller is displayed if the camera permissions are not determined. https://github.com/hyperoslo/Gallery/issues/141 --- Sources/Gallery/GalleryController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Gallery/GalleryController.swift b/Sources/Gallery/GalleryController.swift index f442b066..9dbe694d 100644 --- a/Sources/Gallery/GalleryController.swift +++ b/Sources/Gallery/GalleryController.swift @@ -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 }