Add support for wildcard permissions to the new permission checking algorithm.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>