Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp-account
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-account
Commits
2a96da5a
Commit
2a96da5a
authored
1 year ago
by
Sylvain Le Bon
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: added missing permission check on test model
parent
2825d4ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!115
update: new permission system.
Pipeline
#15901
failed
1 year ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
djangoldp_account/tests/models.py
+2
-1
2 additions, 1 deletion
djangoldp_account/tests/models.py
djangoldp_account/tests/tests_auth_backends.py
+1
-4
1 addition, 4 deletions
djangoldp_account/tests/tests_auth_backends.py
with
3 additions
and
5 deletions
djangoldp_account/tests/models.py
+
2
−
1
View file @
2a96da5a
from
django.conf
import
settings
from
django.db
import
models
from
djangoldp.models
import
Model
from
djangoldp.permissions
import
AuthenticatedOnly
,
OwnerPermissions
from
djangoldp_account.models
import
LDPUser
...
...
@@ -12,5 +12,6 @@ class OwnedResource(Model):
class
Meta
(
Model
.
Meta
):
owner_field
=
'
user
'
permission_classes
=
[
AuthenticatedOnly
,
OwnerPermissions
]
serializer_fields
=
[
'
@id
'
,
'
description
'
,
'
user
'
]
depth
=
1
This diff is collapsed.
Click to expand it.
djangoldp_account/tests/tests_auth_backends.py
+
1
−
4
View file @
2a96da5a
...
...
@@ -3,10 +3,7 @@ import uuid
from
urllib.parse
import
urlencode
from
jwkest.jwk
import
KEYS
try
:
from
django.urls
import
reverse
except
ImportError
:
from
django.core.urlresolvers
import
reverse
from
django.urls
import
reverse
from
django.test
import
RequestFactory
from
django.core.management
import
call_command
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment