Added prefix-based wildcard support to hasPermission() method

User and Group ->hasPermission() (called by hasAccess and hasAny) already supports suffix-based wildcard support. Prefix-based wildcard support could be added as a complement.