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
c150edd0
Commit
c150edd0
authored
3 years ago
by
Calum Mackervoy
Committed by
Benoit Alessandroni
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update: changed default anonymous permissions to none
parent
6fc79778
No related branches found
Branches containing commit
Tags
v0.5.125
Tags containing commit
1 merge request
!94
update: changed default anonymous permissions to none
Pipeline
#11921
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp_account/models.py
+2
-2
2 additions, 2 deletions
djangoldp_account/models.py
with
2 additions
and
2 deletions
djangoldp_account/models.py
+
2
−
2
View file @
c150edd0
...
...
@@ -87,8 +87,8 @@ class LDPUser(AbstractUser, Model):
nested_fields
=
user_nested_fields
serializer_fields
=
s_fields
empty_containers
=
user_empty_containers
anonymous_perms
=
getattr
(
settings
,
'
USER_ANONYMOUS_PERMISSIONS
'
,
[
'
view
'
])
authenticated_perms
=
getattr
(
settings
,
'
USER_AUTHENTICATED_PERMISSIONS
'
,
[
'
inherit
'
])
anonymous_perms
=
getattr
(
settings
,
'
USER_ANONYMOUS_PERMISSIONS
'
,
[])
authenticated_perms
=
getattr
(
settings
,
'
USER_AUTHENTICATED_PERMISSIONS
'
,
[
'
inherit
'
,
'
view
'
])
owner_perms
=
getattr
(
settings
,
'
USER_OWNER_PERMISSIONS
'
,
[
'
inherit
'
])
def
name
(
self
):
...
...
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