RootTheBox icon indicating copy to clipboard operation
RootTheBox copied to clipboard

options.allowed_market_items

Open Benouare opened this issue 1 year ago • 0 comments

Hi,

I ve Just got an issue with this part of code (look at bottom). Don't know if i am doing something wrong or not but, when I try to activate the Federal reserve I run to a HTTP 500. In the logs (can't copy it now), something as :

options is called be assigned

Or something like that. I am on a docker version, everything else is working pretty well. To "fix" it, i ve just removed the if "Federal Reserve" in options.allowed_market_items and With that code, everything works and no bug/500 error anymore. Is it a known issue?

Cheers

{% from tornado.options import options %}
{% block content %}
    {% if "Federal Reserve" in options.allowed_market_items and user.has_item("Federal Reserve") %}
        <div class="container">
            <h1>{{ _("Federal Reserve Bank") }}</h1>
            <br />
            <div class="well" >
                <form id="csrf">
                    {% raw xsrf_form_html() %}
                </form>
                <h3>
                    <i class="fa fa-terminal"></i>
                    {{ _("Mainframe Console") }}
                </h3>
                <div id="console" style="width: auto; height: 500px;">
                </div>
            </div>
        </div>
    {% end %}
{% end %}

Benouare avatar Jan 30 '25 14:01 Benouare