Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
8e8ee808
Commit
8e8ee808
authored
Aug 07, 2016
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed api permissions
parent
2822d947
Pipeline
#100
failed with stage
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
api/views/__init__.py
api/views/__init__.py
+1
-1
No files found.
api/views/__init__.py
View file @
8e8ee808
...
...
@@ -24,7 +24,7 @@ class RightManagedModelViewSet(viewsets.ModelViewSet):
try
:
if
(
request
.
method
==
'GET'
and
can_view
(
obj
,
user
)):
return
res
elif
(
request
.
method
=
=
'
PUSH
'
and
can_edit
(
obj
,
user
)):
elif
(
request
.
method
!
=
'
GET
'
and
can_edit
(
obj
,
user
)):
return
res
except
:
pass
# To prevent bug with Anonymous user
raise
PermissionDenied
...
...
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