mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-21 21:17:23 +00:00
make upload gm8
This commit is contained in:
parent
64ccb29972
commit
37af644078
@ -220,7 +220,7 @@ def rescue(id):
|
|||||||
|
|
||||||
@character_blueprint.route('/upload/<id>', methods=['GET', 'POST'])
|
@character_blueprint.route('/upload/<id>', methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
@gm_level(9)
|
@gm_level(8)
|
||||||
def upload(id):
|
def upload(id):
|
||||||
if not current_app.config["ENABLE_CHAR_XML_UPLOAD"]:
|
if not current_app.config["ENABLE_CHAR_XML_UPLOAD"]:
|
||||||
flash("You must enable this setting to do this", "danger")
|
flash("You must enable this setting to do this", "danger")
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
href='{{ url_for('characters.get_xml', id=character.id) }}'>
|
href='{{ url_for('characters.get_xml', id=character.id) }}'>
|
||||||
Download XML
|
Download XML
|
||||||
</a>
|
</a>
|
||||||
{% if config.ENABLE_CHAR_XML_UPLOAD and current_user.gm_level == 9 %}
|
{% if config.ENABLE_CHAR_XML_UPLOAD and current_user.gm_level == 8 %}
|
||||||
<a role="button" class="btn btn-primary btn-block"
|
<a role="button" class="btn btn-primary btn-block"
|
||||||
href='{{ url_for('characters.upload', id=character.id) }}'>
|
href='{{ url_for('characters.upload', id=character.id) }}'>
|
||||||
Upload XML
|
Upload XML
|
||||||
|
Loading…
Reference in New Issue
Block a user