mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
Update Permission Requirement
This commit is contained in:
parent
cf210eb192
commit
4adaba746d
4 changed files with 181 additions and 12 deletions
|
|
@ -990,6 +990,7 @@ private final class FocusMetadataReader {
|
|||
static let shared = FocusMetadataReader()
|
||||
|
||||
private func getModeConfig(for focusName: String) -> DNDMode? {
|
||||
guard FullDiskAccessAuthorization.hasPermission() else { return nil }
|
||||
do {
|
||||
let data = try Data(contentsOf: pathToDatabase)
|
||||
let root = try JSONDecoder().decode(DNDConfigRoot.self, from: data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue