Merge branch 'development' of gitea.centx.de:lelo/bethaus-app into development
This commit is contained in:
commit
4411a9e96e
4
auth.py
4
auth.py
@ -152,7 +152,7 @@ def require_secret(f):
|
|||||||
header_text_color = app_config.get('header_text_color', '#fff')
|
header_text_color = app_config.get('header_text_color', '#fff')
|
||||||
background_color = app_config.get('background_color', '#fff')
|
background_color = app_config.get('background_color', '#fff')
|
||||||
main_text_color = app_config.get('main_text_color', '#000')
|
main_text_color = app_config.get('main_text_color', '#000')
|
||||||
return render_template('index.html',
|
return render_template('permission.html',
|
||||||
title_short=title_short,
|
title_short=title_short,
|
||||||
title_long=title_long,
|
title_long=title_long,
|
||||||
header_color=header_color,
|
header_color=header_color,
|
||||||
@ -160,7 +160,7 @@ def require_secret(f):
|
|||||||
main_text_color=main_text_color,
|
main_text_color=main_text_color,
|
||||||
background_color=background_color,
|
background_color=background_color,
|
||||||
admin_enabled=is_admin()
|
admin_enabled=is_admin()
|
||||||
)
|
), 403 # Forbidden
|
||||||
return decorated_function
|
return decorated_function
|
||||||
|
|
||||||
def require_admin(f):
|
def require_admin(f):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user