Commit f61e78d1 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents c84b5a4c 8ef18a2a
......@@ -214,6 +214,13 @@ def user_profile(request):
@login_required
def user_remove(request):
if appsettings.DEMO_SERVER and request.user.username == 'demo':
messages.warning(
request,
_('You can not change demo profile on the demo server.')
)
return redirect('profile')
if request.method == 'POST':
remove_user(request.user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment