Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Dec 8, 2021
1 parent 995d806 commit 8d48a31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checks/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ func calculateScore(result permissionCbData) int {
// Start with a perfect score.
score := float32(checker.MaxResultScore)

// If no top level permissions are defined...
// If no top level permissions are defined, all the permissions
// are enabled by default, hence "all". In this case,
if permissionIsPresentInTopLevel(result, "all") {
if permissionIsPresentInRunLevel(result, "all") {
// ... give lowest score if no run level permissions are defined either.
Expand Down

0 comments on commit 8d48a31

Please sign in to comment.