Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
djangoldp-packages
djangoldp
Merge requests
!75
bugfix: partial_update permission
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
bugfix: partial_update permission
bugfix/partial-update
into
master
Overview
1
Commits
1
Pipelines
1
Changes
1
Merged
Ghost User
requested to merge
bugfix/partial-update
into
master
5 years ago
Overview
1
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
a9d147a6
1 commit,
5 years ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
djangoldp/permissions.py
+
2
−
2
Options
@@ -65,7 +65,7 @@ class InboxPermissions(WACPermissions):
"""
anonymous_perms
=
[
'
create
'
]
authenticated_perms
=
[
'
create
'
]
author_perms
=
[
'
view
'
,
'
update
'
]
author_perms
=
[
'
view
'
,
'
update
'
,
'
partial_update
'
]
def
has_permission
(
self
,
request
,
view
):
if
view
.
action
in
[
'
create
'
]:
@@ -103,7 +103,7 @@ class AnonymousReadOnly(WACPermissions):
def
has_permission
(
self
,
request
,
view
):
if
view
.
action
in
[
'
list
'
,
'
retrieve
'
]:
return
True
elif
view
.
action
in
[
'
create
'
,
'
update
'
]
and
request
.
user
.
is_authenticated
():
elif
view
.
action
in
[
'
create
'
,
'
update
'
,
'
partial_update
'
]
and
request
.
user
.
is_authenticated
():
return
True
else
:
return
super
().
has_permission
(
request
,
view
)
Loading