From 718144e7d9a422309c216247a3814a397ba96b24 Mon Sep 17 00:00:00 2001 From: Janez T Date: Mon, 22 Jul 2024 15:16:30 +0200 Subject: [PATCH] Only enable no unused users if user is admin --- Pareto/Checks/Access Security/NoUnusedUsers.swift | 4 ++++ Pareto/Info.plist | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Pareto/Checks/Access Security/NoUnusedUsers.swift b/Pareto/Checks/Access Security/NoUnusedUsers.swift index ad70226..717e5ca 100644 --- a/Pareto/Checks/Access Security/NoUnusedUsers.swift +++ b/Pareto/Checks/Access Security/NoUnusedUsers.swift @@ -80,4 +80,8 @@ class NoUnusedUsers: ParetoCheck { lastLoginRecent(user: u) } } + + override public var isRunnable: Bool { + isActive && isAdmin + } } diff --git a/Pareto/Info.plist b/Pareto/Info.plist index 3f1033a..2103a5c 100644 --- a/Pareto/Info.plist +++ b/Pareto/Info.plist @@ -26,7 +26,7 @@ CFBundleVersion - 5450 + 5453 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion