Fixes #18763 -- Added with_perm to User manager.

with_perm returns a queryset of users who have a permission matching the
given permission name.