Skip to content

Commit

Permalink
cli/rbac/scan-user-permission: allow scan permission for one uid
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Apr 15, 2024
1 parent f0cb6a8 commit 6645a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ctl/rbac/scanuserpermissions/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func outputTable(bindings []binding.Binding, accounts map[int64]types.Account) {
acc.MarkDeleted()
accounts[b.AliUid] = acc
}
if !acc.Deleted() && !opts.allUsers {
if !acc.Deleted() && !opts.allUsers && opts.userId == 0 {
continue
}
newBindings = append(newBindings, b)
Expand Down

0 comments on commit 6645a9d

Please sign in to comment.