public function parse($currentRoute, $permit) {
		$route = $permit['route'];

		$count = count($route);
		if ($count == 0) {
			return false;
		}

		foreach ($route as $key => $value) {
			if (isset($currentRoute[$key])) {
				$values = (is_array($value)) ? $value : array($value);
				foreach ($values as $k => $v) {
					if ($currentRoute[$key] == $v) {
						$count--;
					}
				}
			}
		}
		return $count == 0;
	}