Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d120cc6b
Commit
d120cc6b
authored
Oct 08, 2014
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
11f73c5f
c4219bfe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
weblate/accounts/views.py
weblate/accounts/views.py
+3
-3
No files found.
weblate/accounts/views.py
View file @
d120cc6b
...
...
@@ -150,7 +150,7 @@ def user_profile(request):
instance
=
request
.
user
)
if
appsettings
.
DEMO_SERVER
and
request
.
user
.
username
==
'demo'
:
return
deny_demo
()
return
deny_demo
(
request
)
if
(
form
.
is_valid
()
and
userform
.
is_valid
()
...
...
@@ -222,7 +222,7 @@ def user_profile(request):
@
login_required
def
user_remove
(
request
):
if
appsettings
.
DEMO_SERVER
and
request
.
user
.
username
==
'demo'
:
return
deny_demo
()
return
deny_demo
(
request
)
if
request
.
method
==
'POST'
:
remove_user
(
request
.
user
)
...
...
@@ -461,7 +461,7 @@ def password(request):
Password change / set form.
'''
if
appsettings
.
DEMO_SERVER
and
request
.
user
.
username
==
'demo'
:
return
deny_demo
()
return
deny_demo
(
request
)
do_change
=
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment