Commit 3ac22e81 authored by Michal Čihař's avatar Michal Čihař

Merge branch 'master' into bootstrap

parents a73a00b6 99d2649b
......@@ -139,7 +139,7 @@ def user_profile(request):
if appsettings.DEMO_SERVER and request.user.username == 'demo':
messages.warning(
request,
_('You can not change demo profile on the demo server.')
_('You can not change demo account on the demo server.')
)
return redirect('profile')
......@@ -206,7 +206,7 @@ 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.')
_('You can not change demo account on the demo server.')
)
return redirect('profile')
......@@ -443,6 +443,12 @@ def password(request):
'''
Password change / set form.
'''
if appsettings.DEMO_SERVER and request.user.username == 'demo':
messages.warning(
request,
_('You can not change demo account on the demo server.')
)
return redirect('profile')
do_change = False
......
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