private function shouldShowSudo($request) {
        // only show the sudo view if the sudo_last_time session value either
        // does not exist, the sudo_active value does not exist, or the maximum
        // duration has passed
        $sudo_last_time = session('sudo_last_time');
        $sudo_active = session('sudo_active');
        if(empty($sudo_last_time) || empty($sudo_active)) {
            session(['sudo_active' => false]);
            return true;
        }
        else if(Carbon::now()->diffInMinutes
            (Carbon::createFromFormat('Y-m-d H:i:s', $sudo_last_time)) > config('sudo.duration')) {
            session(['sudo_active' => false]);
            return true;
        }

        return false;
    }