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
!288
Feature/add ipopenperm to djangoldp
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/add ipopenperm to djangoldp
feature/add-ipopenperm-to-djangoldp
into
master
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Benoit Alessandroni
requested to merge
feature/add-ipopenperm-to-djangoldp
into
master
8 months ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
03f40495
Prev
Next
Show latest version
1 file
+
1
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
03f40495
removing: empty space
· 03f40495
Benoit Alessandroni
authored
8 months ago
djangoldp/permissions.py
+
1
−
1
Options
@@ -242,7 +242,7 @@ class IPOpenPermissions(LDPBasePermission):
@@ -242,7 +242,7 @@ class IPOpenPermissions(LDPBasePermission):
def
has_object_permission
(
self
,
request
,
view
,
obj
):
def
has_object_permission
(
self
,
request
,
view
,
obj
):
return
check_client_ip
(
request
)
return
check_client_ip
(
request
)
def
get_permissions
(
self
,
user
,
model
,
obj
=
None
):
def
get_permissions
(
self
,
user
,
model
,
obj
=
None
):
#Will always say there is no migrations, not taking the IP into accounts
#Will always say there is no migrations, not taking the IP into accounts
return
set
()
return
set
()
Loading