to hasPermission