Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vladimir
noc
Commits
7b6f56e5
Commit
7b6f56e5
authored
Apr 17, 2012
by
Dmitry Volodin
Browse files
Cosmetic fix
parent
4c246a55
Changes
1
Hide whitespace changes
Inline
Side-by-side
main/models.py
View file @
7b6f56e5
...
...
@@ -204,7 +204,7 @@ class Permission(models.Model):
for
p
in
self
.
implied
.
split
(
","
)]
@
classmethod
def
has_perm
(
self
,
user
,
perm
):
def
has_perm
(
cls
,
user
,
perm
):
"""
Check user has permission either directly either via groups
"""
...
...
Write
Preview
Supports
Markdown
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