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
30f4695e
Commit
30f4695e
authored
Apr 16, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove method used in single place
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
d02838d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
weblate/trans/models/translation.py
weblate/trans/models/translation.py
+0
-9
weblate/trans/permissions.py
weblate/trans/permissions.py
+3
-2
No files found.
weblate/trans/models/translation.py
View file @
30f4695e
...
...
@@ -1239,12 +1239,3 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
Returns URL of exported git repository.
'''
return
self
.
subproject
.
get_export_url
()
def
only_vote_suggestions
(
self
):
"""
Whether we can vote for suggestions.
"""
return
(
self
.
subproject
.
suggestion_voting
and
self
.
subproject
.
suggestion_autoaccept
>
0
)
weblate/trans/permissions.py
View file @
30f4695e
...
...
@@ -34,8 +34,9 @@ def can_edit(user, translation, permission):
return
False
if
translation
.
is_template
()
and
not
user
.
has_perm
(
'trans.save_template'
):
return
False
if
(
translation
.
only_vote_suggestions
()
and
not
user
.
has_perm
(
'trans.override_suggestion'
)):
if
(
translation
.
subproject
.
suggestion_voting
and
translation
.
subproject
.
suggestion_autoaccept
>
0
and
not
user
.
has_perm
(
'trans.override_suggestion'
)):
return
False
return
True
...
...
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