Refactor have permission for matcher