mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-07 03:16:58 -06:00
swath of changes to remove hidden "id" implementation in favor of hidden "role" RBAC implement
This commit is contained in:
@@ -146,24 +146,4 @@ def login():
|
||||
@app.route('/logout/')
|
||||
def logout():
|
||||
logout_user()
|
||||
return redirect(url_for('index'))
|
||||
|
||||
def get_hidden():
|
||||
return "/hidden{}/".format(app.config['HIDDEN_NUMBER'])
|
||||
|
||||
@app.route('/hidden<id>/history')
|
||||
@login_required
|
||||
@require_role(roles=['Hidden', 'Admin'])
|
||||
def hidden_history(id):
|
||||
if not validate_id(id):
|
||||
return '<span style="color: red;">error:</span> bad id'
|
||||
return render_template('hidden_history.html')
|
||||
|
||||
|
||||
@app.route('/hidden<id>/help')
|
||||
@login_required
|
||||
@require_role(roles=['Hidden'])
|
||||
def hidden_help(id):
|
||||
if not validate_id(id):
|
||||
return '<span style="color: red;">error:</span> bad id'
|
||||
return render_template('hidden_help.html')
|
||||
return redirect(url_for('index'))
|
||||
Reference in New Issue
Block a user