Skip to content

Commit

Permalink
Only enable no unused users if user is admin
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Jul 22, 2024
1 parent 79b7f7c commit 718144e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Pareto/Checks/Access Security/NoUnusedUsers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,8 @@ class NoUnusedUsers: ParetoCheck {
lastLoginRecent(user: u)
}
}

override public var isRunnable: Bool {
isActive && isAdmin
}
}
2 changes: 1 addition & 1 deletion Pareto/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>5450</string>
<string>5453</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 718144e

Please sign in to comment.