Fixes #11303: Allow scoped search by name for permissions.
This both provides this functionality and fixes an issue with creating filters using hammer. Hammer attempts to search for a permission by name using scoped search syntax when creating a filter with the --permission=view_domains style syntax. However, this was defaulting to returning all permissions instead of scoped permissions.
Related issues
Bug #11303: Filter management with hamemr seems to be missing means of associating resource type
Fixes #11303: Allow scoped search by name for permissions.
This both provides this functionality and fixes an issue with creating
filters using hammer. Hammer attempts to search for a permission by
name using scoped search syntax when creating a filter with the
--permission=view_domains style syntax. However, this was defaulting to
returning all permissions instead of scoped permissions.